【发布时间】:2012-08-01 13:16:06
【问题描述】:
完整信息:
error: Ref refs/remotes/origin/user is at 3636498c2ea7735fdcedc9af5ab3c8689e6abe77 but expected a21359c6cc2097c85775cde6a40105f4bd7100ec
From github.com:{github project url}
! a21359c..6273ffc user -> origin/user (unable to update local ref)
【问题讨论】:
-
显然有人用
git push --force重写了存储库的历史记录。尝试运行git pull --force。 -
用 git push --force 给出同样的错误
-
回答这个问题解决了这个错误 - stackoverflow.com/questions/3046436/…