3
votes

After reverting a file to a previous revision in git

git checkout abcdefg myfile

git diff myfile <-- shows no results.

1

1 Answers

3
votes

The revert pulls changes to staging so you have to use

git diff --cached myfile