4 ms·
That is overly complicated. Git already handles such situation. For each repo you have config file in .git folder where you can simply add user section just li
by ozim 5y ago
That is overly complicated. Git already handles such situation.
For each repo you have config file in .git folder where you can simply add user section just like in global and it will override it.
I use that because I work for different customers and have emails for them.
- the_gipsy 5y agoNo, it does make total sense. Instead of repeatedly overriding .gitconfigs, I can now add this rule to ~/.gitconfig.
- joshmanders 5y agoThat may work for some, but some of us work in lots of repos and having to configure it for every repo is cumbersome. I have `~/Code/<me>` for personal, and `~/Code/<company>` for work stuff, I can do this trick and all ~/Code/<company>` repos use my work identity whether I have 1 repo in it or 1000. (Currently have 23).