Commit-editmsg Jun 2026
: Git reads this file after you save and close your editor. If the file is empty or only contains comments (lines starting with # ), the commit is aborted.
Most developers never look inside this file. They see the editor window pop up, assume it’s just a blank text box, and type git commit -m "fix bug" . They are missing the point entirely. COMMIT-EDITMSG
Perhaps you want every commit to include a Co-authored-by: trailer. Your commit-msg hook could append it automatically: : Git reads this file after you save and close your editor
Added a .gitmessage template to standardize commit message formatting, automatically suggesting the imperative mood structure and space for a brief description and body. COMMIT-EDITMSG