Commit-editmsg ๐Ÿ’Ž

: If you realize you aren't ready to commit, simply delete the text you wrote (or leave it empty) and save/close the file. Git will see the empty message and cancel the operation. By treating the COMMIT_EDITMSG

Located in .git/hooks/commit-msg (or .git/hooks/commit-msg.sample to start), this script can read, validate, or even modify the COMMIT-EDITMSG file before the commit is finalized. COMMIT-EDITMSG