git rename most recent commit

git commit --amend -m "an updated commit message"

Leave a Reply