当前位置:   article > 正文

解决git pull时error: cannot lock ref 问题

error: cannot lock ref

问题

git上pull代码时,经常遇到:error: cannot lock ref ‘refs/remotes/origin/abc/efg’: ‘refs/remotes/origin/abc/efg/1.2.3/support_ubuntu12’ exists; cannot create ‘refs/remotes/origin/abc/efg’
会导致当前本地的代码更新不了。

解决方法

执行命令:git update-ref -d refs/remotes/origin/abc/efg/1.2.3/support_ubuntu12
再次git pull成功。

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号