Commit-editmsg | 2025 |
: Update code , fix stuff , WIP Problem : "WIP" (Work in Progress) tells a future developer nothing about what changed or why. Fix : feat(ui): update color palette to meet WCAG 2.2 contrast standards
The --wait flag is crucial. It tells the terminal to pause and wait for you to close the VS Code tab before Git processes the commit message. COMMIT-EDITMSG
This small trick can save you from the tedium of rewriting a detailed explanation of your changes. : Update code , fix stuff , WIP
If you have questions about the content of this article or want to share your own experiences with mastering Git, please reach out. You can contact me at . This small trick can save you from the
: You write your message, save the file, and close the editor.
Here is a sample Bash script you can place in .git/hooks/commit-msg to ensure all commit messages start with a standard prefix (like feat: , fix: , or docs: ):
It starts with a blank space and a list of commented-out instructions (lines starting with # ) showing what will be committed.