在命令行中看到以下内容后:
# On branch RB_3.0.10
# 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: index.htm
我试图通过键入以下命令来放弃所做的更改:
git checkout -- index.htm
但是当我重新运行 git 状态时,它看起来完全一样。收银台好像坏了。我做错什么了吗?我在 windows/cygwin 上使用 GIT 1.6.1.2。
# On branch RB_3.0.10
# 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: index.htm