将文件恢复到之前的修订版后,git diff显示没有区别?
在git中将文件恢复到之前的版本之后
git checkout abcdefg myfile
git diff myfile
< - 显示没有结果。
恢复拉变化到分期,所以你必须使用
git diff --cached myfile
上一篇: After reverting a file to a previous revision git diff shows no differences?
在git中将文件恢复到之前的版本之后
git checkout abcdefg myfile
git diff myfile
< - 显示没有结果。
恢复拉变化到分期,所以你必须使用
git diff --cached myfile
上一篇: After reverting a file to a previous revision git diff shows no differences?