3 ms·
`git add -p` is super useful. (1) you get to review changes as you stage them, which is good to confirm that all the changes still make sense. (2) if you have
by WhyNotHugo 5y ago
`git add -p` is super useful.
(1) you get to review changes as you stage them, which is good to confirm that all the changes still make sense.
(2) if you have _some_ changes that you want to commit, but not others, this avoids screwing up.
Honestly, I can't image using git without this.
Oh, and, please, don't use `git add .` and blindly stage+commit changes. It's honestly one of the worse common practices I've seen around.