【发布时间】:2011-01-23 11:40:07
【问题描述】:
由于某种超出我理解的原因,我无法重置我的 git 工作目录中的一个特定文件!
这里是:
我现在做一个 git reset --hard,
$ git reset --hard
HEAD is now at 97b3164 Added clojure jars for personal tracking and also set clo
jure classpath in jaskirat.el
硬重置后:
$ git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: elpa-to-submit/color-theme.el
#
no changes added to commit (use "git add" and/or "git commit -a")
我也试过 git checkout -- elpa-to-submit/color-theme.el 但似乎没有什么能让我回到一个“干净的”未暂存的工作目录! :-S
注意:我在我的 linux 桌面上也有一个来自 github 的这个 repo 的克隆,我在我的桌面上没有看到任何类似的问题
【问题讨论】: