DEV Community

Discussion on: 3 Git Commands I Use Every Day

aghost7 profile image
Jonathan Boudreau

In regards to git add -p, I personally just use git diff --staged.

gonedark profile image
Jason McCreary Author

That's another good one. I recommend tacking on the -w option to avoid noisy whitespace changes.

The main point is to review your changes before blindly adding them. In the end, whatever command helps you do this is an implementation detail.