Explain the difference between the "Author" and the "Committer" in a Git commit object.
Last updated
The Author is who originally wrote the change and is preserved when the commit is moved. The Committer is who last created the commit object.
They diverge on rebases, cherry-picks, or applied patches: the original author stays, but you become the new committer.
git logshows only the author by default. Usegit log --format=fullerto see both.
- https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History
- https://git-scm.com/docs/git-commit
- https://javascript.plainenglish.io/git-author-vs-committer-whats-the-difference-57428d2ae644
- https://www.freecodecamp.org/news/gitting-things-done-book/
- https://dev.to/rajhawaldar/how-to-chane-author-name-and-the-email-of-the-commit-4a9o