git commit -v

Category: Git - Core

git commit -v

Show the diff while writing the commit message

Opens the editor with the staged diff appended below the message template, so you can review exactly what you are about to commit. The diff is stripped from the final message automatically. It is a great habit for writing accurate commit messages.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.