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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With