How to alter commit message on multiple commits and push it again: git rebase -i HEAD~2 Replace pick with edit OR reword Go through all commits and update commit message With commits pushed to remote: git push ---force OR git push --force-with-lease