Commit-editmsg |best| Site
This adds a of your changes to the bottom of the file (commented out), helping you write a more accurate summary of your work. If you want to dive deeper,
git commit --amend
git commit --amend also uses COMMIT_EDITMSG . It pre-populates the file with the previous commit's message, allowing you to edit it. COMMIT-EDITMSG
Git performs the following steps: