4 ms·
'git diff' (also hopefully obvious) Except it's not, since it'll output different things depending on whether you have staged anything or not. This behavior i
by maw 18y ago
'git diff' (also hopefully obvious)
Except it's not, since it'll output different things depending on whether you have staged anything or not.
This behavior is sometimes useful, but hardly obvious. Many aspects of git are like this, and it's frustrating, speaking as someone who slowly came around to git and now likes it quite a bit and would recommend it, to see its advocates forget or try to talk around just how difficult it is to learn. (1.5 and 1.6 may have improvements, but the claim that git's now roughly as easy to learn as hg or bzr, especially without understanding its internals, is absurd.)