Commit-editmsg !free! (TRUSTED × WALKTHROUGH)
: Once you save and close the file, Git reads its contents, ignores any lines starting with
Next time you stage a change, resist the urge to type git commit -m "updates" . Instead, type git commit . Stare at the .git/COMMIT_EDITMSG file. Write a story. Automate the boring parts. Your future self—and your teammates—will thank you. COMMIT-EDITMSG
Warning: Use sparingly. This is a nuclear bypass for emergency situations. : Once you save and close the file,
Once you open the COMMIT-EDITMSG file in your editor, you can modify the commit message. Git reads its contents
Keep the first line under 50 characters and use the imperative mood (e.g., "Fix bug" instead of "Fixed bug").