我刚刚提交了我的工作目录,首先将文件添加到索引中,并使用"$git commit -m 'test'"进行提交。我将标准输出保存到一个文件中,然后查看文件开头的内容时发现它说:
# On branch master
# Changed but not updated:
# (use "git add/rm ..." to update what will be commited)
# (use "git checkout -- ..." to discard changes in working directory)"
我的问题在于我的工作树没有被提交到仓库,我感觉这与此有关。
谢谢。