The answers to How to modify existing, unpushed commits? describe a way to amend previous commit messages that haven\'t yet been pushed upstream. The new messages inherit t
if it is previous last commit.
git rebase -i HEAD~2 git commit --amend --date=now
if you already push to orgin and can force use:
git push --force
if you can't force the push and if it is pushed, you can't change the commit! .