Jun
26
2009
0
By David Luhman
My own personal cheat sheet of useful Git commands.
diff
git diff --stat --staged (staged in 1.6+, cached in older)
Differences between HEAD and index (i.e., shows changes that have been staged)
git diff -U1 --stat
Reduces the context lines around differences to one line for shorter display. Puts summary (stat) at start of diff.
Categories: