我正與一個開發人員在這裏誰看到一個奇怪的問題,我從來沒有遇到過。他正在開發一個存儲庫,並且需要在推出之前從其他人處獲取最新的更改。他所有的改變都是承諾的。不能拉的B/C「你有未分離的變化」,但狀態說沒有變化
$ git pull
Cannot pull with rebase: You have unstaged changes.
Please commit or stash them.
這似乎不夠合理,直到......
$ git status
# On branch master
# Your branch and 'origin/master' have diverged,
# and have 3 and 1 different commit each, respectively.
#
nothing to commit (working directory clean)
你說什麼?
我試過git reset --hard HEAD
拉之前,但拉仍然失敗。
只有一個人看到了這一點,他在Mac上(OSX 10.6.8)。有任何想法嗎?我正要把我的頭髮拉出來。
如果你運行'git config branch.autosetuprebase',你會得到什麼值?如果它被設置爲「always」,這可能解釋這裏發生的事情。 – ThomasW