gitgithub

What is the difference between author and committer in Git?


I just came across a commit on GitHub. How does one go about having multiple authors on the same commit like that?


Solution

  • That's not really two authors; that's an author and a committer. The two fields have different meanings. The author is the one who created the content, and the committer is the one who committed it. When you do a normal commit, you are both. (And both come with an associated email and timestamp.)

    But they can become different in a few key ways: