如何使用 git 从 master 分支中拉取?

How can I pull from master branch with git?

我尝试从我的主分支中拉取,但我收到错误消息:

$ 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