当前位置:   article > 正文

Cannot pull, git cannot resolve reference ORIG_HEAD_git can't resolve ref: "head

git can't resolve ref: "head

Cannot pull, git cannot resolve reference ORIG_HEAD

拉取代码的时候 Cannot lock the ref ‘ORIG_HEAD’.
这样解决:
I solved it by removing the file .git/ORIG_HEAD then doing the pull again. The .git/ORIG_HEAD file was 0 bytes instead of the git reference it was supposed to contain, so I just got rid of it.
就是通过删除文件.git / ORIG_HEAD解决了这个问题

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/397084
推荐阅读
相关标签
  

闽ICP备14008679号