完整消息:
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)
最佳答案
如果您在不区分大小写的文件系统(Windows 或 OS X)下运行 git,如果有两个名称相同但大小写不同的分支,例如user_model_changes
和 User_model_changes
作为两个远程分支将匹配相同的跟踪引用。
删除错误的远程分支(你不应该只有大小写不同的分支)然后 git remote prune origin
一切都应该工作
关于git pull 错误 :error: remote ref is at but expected,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11796580/