Tags

You can configure an individual repo to use a specific user / email address which overrides the global configuration. From the root of the repo, run

$ git config user.name "Arman Ortega"
$ git config user.email your@email.com

# To verify it
$ cd myAppRepo   # Name of your repo directory
$ vi .git/config
[user]
   email = your@email.com
...

The global user/email is configured in ~/.gitconfig

$ git config --global user.name "Your Name Here"
$ git config --global user.email your@email.com

# To verify it
$ vi ~/.gitconfig
[user]
   email = your@email.com
   name = Arman Ortega
[credential]
   helper = wincred
...
Advertisements