Modify commit messages

Suppose you have made some commits, pushed them to remote, and now realize that you want to change the title of the commit message. To do this, you will first need to check out the old commit

git checkout COMMITHASH

Modify the commit message

git commit ammend

Push to remote

git push -f origin HEAD:BRANCHNAME