【发布时间】:2011-06-11 17:08:32
【问题描述】:
如果我在我的 repo 上运行“git status”,它会给出:
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: myfile
但是,如果我执行 'git diff myfile',它不会显示任何差异。这是因为我做了更改并删除了它,所以它回到了原来的状态?
我应该运行 'git checkout myfile' 来清除它吗?
【问题讨论】:
标签: git git-diff git-status