Last Updated: February 25, 2016
·
2.43K
· hasenj

`git commit -v` see what you're committing

adding -v to the git commit command shows you the diff of what you're committing in the text editor where you write the commit message.

This is very useful for sanity-checking what you're committing.

Unless of course, you write the commit message using -m, then the -v flag will be pretty useless.