Git的错误拉(无法更新本地参考) [英] Git error on git pull (unable to update local ref)
本文介绍了Git的错误拉(无法更新本地参考)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
error:Couldn我只有分支大师,每次我尝试git pull时都会收到此错误't set refs / remotes / origin / master
从/ var / lib / git / xxx / project
! a0f80ea..49177a3 master - >原产地/主(无法更新本地参考)
当我做git pull origin master get:
错误:无法设置ORIG_HEAD
致命错误:无法更新ref'ORIG_HEAD'。
我一直在寻找,但找不到原因
我的团队和我遇到了这个错误,无法更新本地ref ,当在SourceTree中进行拉取时。
$
$ b
git gc --prune = now
这会删除任何应该解决问题的重复引用对象。
是几个链接,您可以了解更多关于git引用和修剪的信息:
I only have branch master and im getting this error every time i try to "git pull":
error: Couldn't set refs/remotes/origin/master From /var/lib/git/xxx/project ! a0f80ea..49177a3 master -> origin/master (unable to update local ref)
and when i do "git pull origin master" i get:
error: Couldn't set ORIG_HEAD fatal: Cannot update the ref 'ORIG_HEAD'.
i have been searching but cant find why
解决方案My team and I ran into this error, unable to update local ref, when doing a pull in SourceTree.
We used :
git gc --prune=now
This removes any duplicate reference objects which should fix the issue.
Here are a few links where you can learn more about git references and pruning :
这篇关于Git的错误拉(无法更新本地参考)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文