You create multiple commits and want to change the second latest: git stash git rebase -i [...]