- 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
git clone git@github.com:baijunyao/gitconfig-demo.git ~/Sites/gitconfig
Add the following code to the ~/.gitconfig
[include]
path = ~/Sites/gitconfig/.gitconfig