- Set user and email according to the directory
- Ignore files globally
git clone git@github.com:baijunyao/gitconfig-demo.git ~/Sites/gitconfig
Add the following code to the ~/.gitconfig
[include]
path = ~/Sites/gitconfig/.gitconfig
Repository from Github https://github.combaijunyao/gitconfig-demo
git clone git@github.com:baijunyao/gitconfig-demo.git ~/Sites/gitconfig
Add the following code to the ~/.gitconfig
[include]
path = ~/Sites/gitconfig/.gitconfig