我尝试从主分支中拉出,但收到错误消息:
$ git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin
error: cannot lock ref 'refs/remotes/origin/navigation': is at 1234566753 but expected 5434623423 From https://bitbucket.org/myproject ! 12345..8f1b648 navigation -> origin/navigation (unable to update local ref) Completed with errors, see above
我能做什么?
最佳答案
尝试运行:
git gc --prune=now
并删除
.git/refs/remote/origin
关于git - 如何使用git从master分支中 pull 出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59862368/