2 ms·
Having separate add and commit steps has improved my workflow. If you do an add, followed by a "git diff --cached", you can view what's going to be committed b
by csense 14y ago
Having separate add and commit steps has improved my workflow.
If you do an add, followed by a "git diff --cached", you can view what's going to be committed before you do the actual commit.
I've found this workflow to be useful, since it helps see things like debugging print statements that crept in, or unnecessary files accidentally added ("git diff --cached --stat" is useful for the latter).