Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use 2 different global git configs?

I am using the github client and sourcetree by atlassian. I wanted to use 2 different global git configs for each software.

At the moment I have to edit and check every commit my autor and email name.

So how can I specify a unique config for each git program that I use.

king regards

like image 245
Hidden Avatar asked Mar 17 '14 08:03

Hidden


1 Answers

Each repo has its own configuration, which can override the system-wide and global configurations. Just enter each repo and

git config user.name xxxx
git config user.email yyyy

Note the lack of the --global option.

like image 140
SzG Avatar answered Sep 18 '22 21:09

SzG