DEV Community

Discussion on: Don't commit that file!

Collapse
 
dovidweisz profile image
dovidweisz

Hmm, like to commit often, and use git commit -av. The verbose option gives me a diff, which I use to make my pre-flight checks.

Collapse
 
joshcheek profile image
Josh Cheek

Nice, I didn't know about commit -v I still have to do it one file at a time, though. If I don't think about what's in the file before looking at the diff, I wind up glossing over it and not being in tune with my commits.