After reverting a file to a previous revision in git
git checkout abcdefg myfile
git diff myfile
<-- shows no results.
After reverting a file to a previous revision in git
git checkout abcdefg myfile
git diff myfile
<-- shows no results.
The revert pulls changes to staging so you have to use
git diff --cached myfile
© 2022 - 2024 — McMap. All rights reserved.