git change last commit message

·

1 min read

Sometimes we make mistake or some typo issues while typing git commit messages. We can change last commit message by following below steps:

Type this command in your CLI and hit enter key

git commit --amend

You will see this type of changes in your CLI including your last commit details

git-change-last-commit-message.png

Now change your commit message then type ':wq' and hit Enter key to save your changes and exit from this screen