Skip to content

Amend commit message


When you type too fast, you may make a mistake on your commit message and want to edit it before you push it


git commit --amend

This will open a VI/ Vim editor where you can make your changes

How to use and exit vim

To edit, press i then you can type

To exit vim, press esc then type wq! and press enter

Once done, you can git push as usual

Want to make this site better? Open a PR or help fund hosting costs