2018-2-13-git-cannot-lock-ref

阅读 9

2024-10-16

title

author

date

CreateTime

categories

git cannot lock ref

lindexi

2018-2-13 17:23:3 +0800

2018-2-13 17:23:3 +0800

git

如果在 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)

0 0 举报