コマンドラインから次を見た後:
# 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 status を再実行すると、まったく同じように見えます。チェックアウトが機能していないようです。私は何か間違ったことをしていますか?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