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
  • 10,597
  • 5
  • 44
  • 45

1 Answers1

4

The revert pulls changes to staging so you have to use

git diff --cached myfile

Geoffrey Hale
  • 10,597
  • 5
  • 44
  • 45