Modify Last n Commits
How do I modify a specific commit?
1
git rebase --interactive bbc643cd hashcode~
~ at the end of the command, because you need to reapply commits on top of the previous commit of
bbc643cd
.
In the default editor, modify pick to edit in the line mentioning bbc643cd.
1
git commit --all --amend --no-edit
1
git rebase --continue
This post is licensed under CC BY 4.0 by the author.