How can I see the content of a file in the staging area in GIT?

Viewed 95

I want to see content of a file in staging area not difference of that related to the last commit. How can I do that?

2 Answers

One way is to do git stash --keep-index. Now your local file will be identical to what is staged in the index. To get your other changes back from the stash do git stash pop or git stash apply.

Related