git-status报告一切都干净,但git-pull抱怨未执行的更改

问题描述:

有人可以向我解释下面的输出吗?git-status报告一切都干净,但git-pull抱怨未执行的更改

[[email protected] hostname /dir]% git status 
On branch master 
Your branch is up-to-date with 'origin/master'. 

It took 11.81 seconds to enumerate untracked files. 'status -uno' 
may speed it up, but you have to be careful not to forget to add 
new files yourself (see 'git help status'). 
nothing to commit, working directory clean 
[[email protected] hostname /dir]% git pull 
Cannot pull with rebase: You have unstaged changes. 
Please commit or stash them. 
[[email protected] hostname /dir]% git --version 
git version 2.4.8 
[[email protected] hostname /dir]% 
+0

我不确定这个问题有多大的帮助。我还不清楚这里发生了什么 - 也因为我删除了有问题的目录。我认为这些问题是由一个疯狂的NFS磁盘造成的。很多时候我发现一个.git/.lock文件没有任何剩余的git进程。一旦git clean -fd由于某些目录只读而失败。所以我很好,删除这个问题。当然,从如何调试问题的角度来看,答案是有帮助的。 –

消息本身来自git-sh-setup.sh,这git-pull.sh(Git的版本2.4.8)调用,以确保它的确定做了git pull将运行git rebase

什么不太清楚,为什么git diff-files与非零状态退出(见git-sh-setup.sh直接链接的线上线),即使git status说,没有什么承诺。手动运行git diff-files,以获得其实际输出,可能是有启发性的。