标签: git diff revert git-checkout git-revert
在git中reverting a file to a previous revision之后
git checkout abcdefg myfile
git diff myfile< - 显示没有结果。
git diff myfile
答案 0 :(得分:3)
恢复将更改拉到分段,因此您必须使用
git diff --cached myfile