Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
greyface-
· 4y ago · 0 comments
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
Comments
[–]
yjftsjthsd-h
4y ago
Thank you; here I'd been using an alias for `git commit -v` all this time:)
[–]
bin_bash
4y ago
wow thanks for this! I often find myself amending after running `git show` to get this information