-
Using Git how do you amend the author of the latest commit? Also, how would you amend the second or third commits? |
Beta Was this translation helpful? Give feedback.
Answered by
rkotze
Jun 18, 2022
Replies: 1 comment
-
Amend author for the latest commit:
Amend author of older commit messages using Step through each commit running the "--amend" flag followed by rebase continue. Repeat til done.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rkotze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Amend author for the latest commit:
Amend author of older commit messages using
git rebase -i
interactive mode. Provide a commit hash of the last good commit and then when the commit list shown in the editor change "pick" to "edit" for commits you want to change.Step through each commit running the "--amend" flag followed by rebase continue. Repeat til done.