I am trying to make a commit like
git commit --author="John Doe <john@doe.com>" -m "<the usual commit message>"
where John Doe is some user in whose name I want to make the commit.
It appears all right in git log
. However, when I do a gitk
, the author name is correct, but the committer name is picked from my global git config settings (and is thus set to my name/email).
Questions
-
What is the difference between the two (committer vs author)?
-
Should I be setting the committer as well to the other user?
-
If yes, how?