After reverting a file to a previous revision git diff shows no differences?
After reverting a file to a previous revision in git
git checkout abcdefg myfile
git diff myfile
<-- shows no results.
恢复拉变化到分期,所以你必须使用
git diff --cached myfile
上一篇: 我如何显示已经上演的变化?