Ask yourself: (Your future self, teammates, open-source contributors)

Press Esc , delete all non-commented text (or leave it blank), type :q! , and press Enter . If the file is empty of user text, Git will safely abort the commit. 2. Changing the Default Editor

This hook executes after you save and close COMMIT_EDITMSG but before the commit is permanently recorded. It is widely used to enforce formatting rules. If a developer attempts to save a message that doesn't fit specific patterns, the hook aborts the operation.