Commit-editmsg -
The file COMMIT_EDITMSG is a temporary text file created by Git to store your commit message during the editing process.
6. Restoring a Lost Commit Message
If a commit fails after you wrote a message (e.g., pre-commit hook fails, merge conflict), the message is often still in .git/COMMIT_EDITMSG. You can recover it with: COMMIT-EDITMSG
Set to VS Code: git config --global core.editor "code --wait" Set to Vim: git config --global core.editor "vim" The file COMMIT_EDITMSG is a temporary text file
Suggested improvements:
- ❌ Too vague: “Fix thing”
✅ “Fix memory leak in connection pool” - ❌ Too long (72 chars+): “Refactor the entire authentication module to support OAuth2 with PKCE and update tests…”
✅ “Add OAuth2 PKCE support to auth module”
- Add Session.revokeAllExceptCurrent(userId, currentSessionId)
- Call method from PasswordChangeController
- Add migration to add
revoked_atcolumn