如果在 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
来源: http://www.bubuko.com/infodetail-2481694.html