Git

Computing
Working on GitLab by mirroring open source model

Clone open source model to GitLab Taking an ocean model ROMS as an example, let's consider the best practice of operating the ROMS repositories by cloning (not forking) the original ROMS repository to GitLab, where the mirroring is set to automatically import the update of the original repository. Please refer to this article for the settings up to this point. I will create and operate my own devel branch to avoid changing the repository cloned from the original repository on GitLab. Now the remote repository is GitLab cloning (mirroring) the original ROMS repository; local repository is operated using GitBash on Windows 10 Pro and Git on Supercomputer ITO. Final workflow […]

Read more
Computing
Git for Windows

Install Install Git for Windows on Windows 10 Pro and manage version control with Git Bash. It is assumed that the compilation and execution will be done on Ubuntu 18.04 LTS on WSL on Windows 10 Pro. Therefore, the linefeed code should always be in Linux format. This linefeed code stuff is a trap for beginners, so be careful. Download Git for Windows from here and start installation by double-clicking. Basically, the default is OK, but in the question about line endings appearing nearly at the end (Configuring line ending conversions), click the third option below. This allows you to work while always maintaining the Linux linefeed code. Checkout as-is, […]

Read more
Computing
Setup GitLab using Git for Windows

Register GitLab Firstly, register GitLab and create a project. No contents are required at this moment as this project will be cloned to Windows directory. Install Git for Windows Download Git for Windows from this site and install it. Default settings are recommended except Adjusting your PATH environment where Use Git from Git Bash only is recommended to choose for safety. Initial setting for Git Open Git Bash and set as follows. Here, Hidemaru Editor is chosen. user.name and user.email should be those registered in GitLab. Quotation marks are also required. $ git config --global core.editor \'/C/Program Files (x86)/Hidemaru/Hidemaru.exe\' //fu8 $ git config --global user.name Your Name $ git config […]

Read more