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?
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?
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.