Managing multiple git config settings for github.com

If you work on multiple github.com repos and want specific repos to be associated with another github.com login. You can run the following from the root of a specific repo.

git config user.name “First Last Name”
git config user.email email@domain.com

This will ensure your commits will be updated using your repo specific user.name and user.email instead of your global git config user.name and user.email.

Leave a Comment