: Great commit messages act as a "love letter to your future self." When you or a teammate use six months from now, a message written thoughtfully in a COMMIT_EDITMSG
: If you decide you aren't ready to commit, simply delete all the text in the file (or leave it blank) and save/close. Git will see the empty message and abort the commit. COMMIT-EDITMSG
A standard "complete story" for a commit message follows the 50/72 rule Subject Line (The Title): : Great commit messages act as a "love
In the quiet hours of 2:00 AM, a lone developer typed git commit and was suddenly pulled from their terminal into the stark, blinking world of COMMIT-EDITMSG . When you run git commit without the -m
When you run git commit without the -m flag, Git opens your default text editor (like , Nano , or VS Code ) and creates this file in the .git/ directory.