After reverting a file to a previous revision git diff shows no differences?
Asked Answered
A

1

4

After reverting a file to a previous revision in git

git checkout abcdefg myfile

git diff myfile <-- shows no results.

Arnettearney answered 2/12, 2015 at 19:19 Comment(0)
A
4

The revert pulls changes to staging so you have to use

git diff --cached myfile

Arnettearney answered 2/12, 2015 at 19:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.