16
Sep
Learn how to edit an incorrect commit message in Git?
Here is the way to edit last git commit message.
git commit --amend -m "www.learnhow2do.com"
git commit –amend is the way to overwrite the last commit. But if you want to overwrite the files also, then use git commit -a –amend -m.
git commit -a --amend -m "www.learnhow2do.com"