4

After reverting a file to a previous revision in git

git checkout abcdefg myfile

git diff myfile <-- shows no results.

Community
  • 1
  • 1
Geoffrey Hale
  • 9,339
  • 5
  • 39
  • 43

1 Answers1

4

The revert pulls changes to staging so you have to use

git diff --cached myfile

Geoffrey Hale
  • 9,339
  • 5
  • 39
  • 43