Multiple git config
Global git config at ~/.gitconfig
[user]
name = Nhan Cao
email = nhancv92@gmail.com
Create a config file if it does not exist.
To assume you need all commit in the specific folder tree use another author.
- Create a new git config file in that specific folder. The example: I place in ‘eric’ folder: /Volumes/Data/Projects/eric/.gitconfig
[user]
name = Eric Cao
email = ericc@gmail.com
- Then update the global git config file like