The default config file is ~/.gitconfig.

For example you can add default color to git (git diff, git status, etc...) by adding this line to your .gitconfig :

[color]

branch = auto

status = auto

diff = auto

You have to set your username and email which will appear in your future commits messages :

[user]
name = Your Full Name
email = your.email@domain.tld

Very useful alias to check arborescence :

[alias]

ls = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
la = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all

Topic revision: r2 - 14 Sep 2016 - 10:43:51 - LouisRannou
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback