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]>"
More on Commits, branches and tags
How do you write a good commit message?BeginnerWhat is the difference between `git add .`, `git add -A` and `git add -u`?BeginnerHow do you commit only part of the changes in a file?BeginnerHow do you change the last commit message or add a forgotten file?BeginnerWhat is the difference between `git switch`, `git restore` and `git checkout`?BeginnerWhat is the difference between lightweight and annotated tags?Beginner