Interview Prep/Git & GitHub/Commits, branches and tags

What is the difference between author and committer?

IntermediateConceptCommits, branches and tags
Answer

The author wrote the change, the committer applied it. They differ after cherry-pick, rebase, am or amend, where the committer and committer date update while author data stays. git log --pretty=fuller shows both. GitHub displays co-authors from Co-authored-by: trailers.

git log -1 --pretty=fuller
git commit -m "pair work" -m "Co-authored-by: Asha <[email protected]>"
All Git & GitHub questions Roadmap: Git & GitHub

More on Commits, branches and tags