- Set user and email according to the directory
- Ignore files globally
git clone https://github.com/lbbniu/gitconfig.git ~/github/gitconfig
Add the following code to the ~/.gitconfig
[include]
path = ~/github/gitconfig/.gitconfig
git clone https://github.com/lbbniu/gitconfig.git ~/github/gitconfig
Add the following code to the ~/.gitconfig
[include]
path = ~/github/gitconfig/.gitconfig