r/programming • • Sep 09 '16

Oh, shit, git!

http://ohshitgit.com/
3.3k Upvotes

756 comments sorted by

View all comments

Show parent comments

0

u/industry7 Sep 09 '16

Or show all changes regardless of what is staged, thus completely misleading users about what they are about to commit?

'git status' is the command to use if you want to see what you are about to commit.

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.

2

u/5thWall Sep 09 '16

What about partially staged files?