[Tips]git cannot lock ref

参考博客:https://blog.csdn.net/lindexi_gd/article/details/79213042

错误原文:

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://www.cnblogs.com/immortalBlog/p/10310585.html