How To Change Git Credentials On A Per Project Basis

If you handle multiple repositories on the same client but you need to use different Git credentials, this is how you do it.

Flo

You just have to search for the config file inside of your .git folder.

If you have found it, append this snippet to it if no user configuration exists:

.git/config
[user]
name = foo
email = foo.bar@test.com

Thanks to this StackOverflow answer!