【问题标题】:After reverting a file to a previous revision git diff shows no differences?将文件恢复到以前的版本后 git diff 没有显示差异?
【发布时间】:2016-03-07 04:36:35
【问题描述】:

在 git 中 reverting a file to a previous revision 之后

git checkout abcdefg myfile

git diff myfile

【问题讨论】:

    标签: git diff revert git-checkout git-revert


    【解决方案1】:

    revert 会拉取对暂存的更改,因此您必须使用

    git diff --cached myfile

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-11
      • 2020-01-18
      • 1970-01-01
      • 2014-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多