Commit-editmsg [TESTED]
Introduction to Commit Messages
git commit --no-verify -m "Hotfix for production"
Fix login timeout on slow networks
Good body example:
COMMIT_MSG_FILE=$1
- If the resulting message is empty → Git aborts the commit (unless
--allow-empty-messageis used). - If only whitespace remains → Git aborts.
"Vim stuck":
If your terminal turns into a text editor, you are likely in Vim. Type :wq and press Enter to save and exit, or :q! to abort the commit. COMMIT-EDITMSG