相关疑难解决方法(0)

无法拉动b/c"您有未分级的更改",但状态显示没有更改

我正在和一位开发人员一起工作,他们正在看到一个我以前从未遇到过的奇怪问题.他正在开发一个存储库,需要在推送之前从其他人那里获取最新的更改.他所有的改变都是承诺的.

$ 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

22
推荐指数
2
解决办法
2万
查看次数

标签 统计

git ×1