当前位置:   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成功。

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/412344
推荐阅读
相关标签
  

闽ICP备14008679号