git - 如何使用git从master分支中 pull 出?

标签 git error-handling pull

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

$ 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/

相关文章:

git - 如何执行 'Undo pending changes' 的 TFS 等价物

git - 将 CocoaPods 分支 merge 为 Carthage 分支 - 怎么做?

php - 在php中上传文件时出错

python - 如何将datetime对象转换为float? AttributeError : 'datetime.datetime' object has no attribute 'datetime_to_float'

java - 在下拉菜单中拉取 json 文件

java - 没有 pull 的Git推送

git - 命令我在哪个git存储库中使用

git - 如何在特定分支的 Git 存储库中获取开发人员一天的提交次数

php - 如何将特定脚本的错误记录到文件中?

git - `git push --mirror` 的对面?我如何取回我的 repo 协议(protocol)?