我刚刚在PyCharm(3.0 CE)中编辑了一个文件并选择了“Git / Commit File ...”以显示“Commit Changes”对话框。输入评论后,我点击“提交”按钮。没有任何事情发生(没有提交,没有错误消息,没有其他反馈)。
在命令行中,我运行了git status
和git status -uno
并且两次都获得了相同的输出:
# On branch trunk-new-feature
# Your branch is ahead of 'origin/master' by 9 commits.
#
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: ViewModel.py
#
no changes added to commit (use "git add" and/or "git commit -a")
从命令行,我改为运行git commit ViewModel.py
。我被提示进行评论,并且按预期进行了更改。
我怎样才能找出为什么这在PyCharm中不起作用?