Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the current staged changes?

Tags:

git

I've just interactively staged a few chunks of a file, someFile.txt. So when I look at the current status, I see the file in both staged and unstaged areas.

How do I see which of the changes are currently staged?

like image 337
Shane Avatar asked Sep 09 '13 11:09

Shane


1 Answers

You can see which changes are currently staged using git diff --cached.

With no arguments, git diff will show you unstaged changes in the working directory; using git diff --cached it will show you only changes which have been staged, but not yet committed.

like image 181
meagar Avatar answered Oct 23 '22 00:10

meagar