I just checked my git log and noticed that the email address for commits is different than for merges. I’m wondering what might be causing that so I can figure out how to make it so my email address for commits is the one I want.
(I’ve seen solutions for the problem – I’m more curious as to why this is happening.)
It is possible that you are merging using your github account and the email address for your github account is different than the email address you use in your
git configon your machine.You can change this for only one repository by using
git config user.email <email-address>for your local repository. If this does not work, make sure you have not set theGIT_COMMITTER_EMAILorGIT_AUTHOR_EMAILvariables.Additionally, you can use –global to make changes for all your git repositories on your local EG:
git config --global user.email <email-address>