News for hackers. Stuff that matters.
Re:Using Git commit message templates to write better commit... by greyface- on Wednesday January 12, 2022 @07:26PM (#29915021)
A useful, related trick. Enable commit.verbose to have Git append a diff to the commit message template, which you can quickly consult when writing a commit message.

  git config --global commit.verbose true
https://tekin.co.uk/2020/03/git-commit-verbose-mode
Re:Using Git commit message templates to write better commit... by yjftsjthsd-h on Wednesday January 12, 2022 @07:49PM (#29915280)
Thank you; here I'd been using an alias for `git commit -v` all this time:)
Re:Using Git commit message templates to write better commit... by bin_bash on Thursday January 13, 2022 @09:43AM (#29921227)
wow thanks for this! I often find myself amending after running `git show` to get this information