2017-10-17 170 views
0

有人可以向我解釋下面的輸出嗎?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由於某些目錄只讀而失敗。所以我很好,刪除這個問題。當然,從如何調試問題的角度來看,答案是有幫助的。 –

回答

1

消息本身來自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,以獲得其實際輸出,可能是有啓發性的。