I'm using git for several project at the same time. Apparently I have a global setting with username, etc. What I want to maintain is different user name, email, etc for different project. How to achieve this?
With conditional includes in Git 2.13, it is now possible to have multiple user/email coexist on one machine with little work. user. gitconfig has my personal name and email.
Just use the git config
command without the --global
parameter.
Instead of
git config --global user.name "lang2"
Type
git config user.name "lang2"
As described in the documentation, global configurations are stored in ~/.gitconfig
, and per repository configuration resides in .git/config
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With