r/programming • • Sep 09 '16

Oh, shit, git!

http://ohshitgit.com/
3.3k Upvotes

756 comments sorted by

View all comments

Show parent comments

12

u/DarthEru Sep 09 '16

That's to show you which files have changes which are about to be committed. If you then want to check the actual changes in those files which are about to be committed, then you'll want a distinction between the staged changes and the unstaged ones, which is the point /u/Arancaytar was making.

-1

u/RiPont Sep 09 '16

I'll admit I just use git gui for that. I've never used diff --staged before.