a .gitconf file template
$ git clone https://github.com/driver2000/git-dotfiles.git
$ mkdir ~/.git.d
$ ln -s git-dotfiles/gitconfig ~/.git.d/gitconfigGit (1.7.10+) now supports this syntax in .gitconfig:
[include]
path = ~/.git.d/gitconfig$ git config --local user.name your name
$ git config --local user.email [email protected]if you want set user.name and user.email globally use --global instead --local
or edit the conf file directly :
$ git config -e [--global]