0
点赞
收藏
分享

微信扫一扫

git cannot lock ref

如果在 git 准备下载仓库的时候,出现下面的错误 cannot lock ref 'refs/remotes/origin/xx':'refs/remotes/origin/xx/xx' exists cannot create 'ref/remotes/origin/xx' 那么请看本文,本文提供了一个解决方法

如果在 git 准备下载仓库的时候,出现下面的错误

cannot lock ref 'refs/remotes/origin/xx':'refs/remotes/origin/xx/xx' exists cannot create 'ref/remotes/origin/xx'

那么请看本文,本文提供了一个解决方法

请使用下面代码

git update-ref -d refs/remotes 
git fetch

使用了之后就可以了。

https://stackoverflow.com/questions/43533473/error-cannot-lock-ref-refs-tags-exists-cannot-create-refs-tags









举报

相关推荐

0 条评论