Comp:git
From Theochem
Jump to navigationJump to searchTo share your software you can use our gitlab server. Here are instructions to set up a git repository on disk.
Create .gitconfig
In your home directory create a file with the name .gitconfig with the content:
[user] name = Firstname M. Lastname email = username@science.ru.nl
This is all that is needed, but more settings can be added:
[init] defaultBranch = main # change the default branch name "master" to "main" [color] ui = auto [core] pager = more # or less [diff] tool = vimdiff # if you use vi or vim [alias] log1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all log2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all