Commit-editmsg !new!

: When you run git commit --amend , Git pulls your previous message back into this file so you can tweak it before finalizing. How to Master the Buffer

read -r subject < "$COMMIT_MSG_FILE"

Once you open the COMMIT-EDITMSG file in your editor, you can modify the commit message. COMMIT-EDITMSG

: It invokes your default text editor (e.g., Vim, Nano, VS Code) to open this file. User Input : When you run git commit --amend ,

A raw COMMIT-EDITMSG session forces you to adhere to this format, resulting in beautiful, git log --oneline and git shortlog friendly history. resulting in beautiful