我正在和一位开发人员一起工作,他们正在看到一个我以前从未遇到过的奇怪问题.他正在开发一个存储库,需要在推送之前从其他人那里获取最新的更改.他所有的改变都是承诺的.
$ git pull
Cannot pull with rebase: You have unstaged changes.
Please commit or stash them.
Run Code Online (Sandbox Code Playgroud)
这看起来很合理,直到......
$ 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)
Run Code Online (Sandbox Code Playgroud)
说什么?
我git reset --hard HEAD
在拉动之前已经尝试过,但拉动仍然失败.
只有一个人看到这个,他在Mac上(OSX 10.6.8).有任何想法吗?我要把头发拉出来.
git ×1