git pull报错error: cannot lock ref ‘refs/remotes/origin/xxx’:ref
git remote prune origin
有些分支在远程其实早就被删除了,但是在你本地依然可以看见这些被删除的分支,在根目录下运行 git remote prune origin刷新本地仓库与远程仓库的保持这些改动的同步,这样就不会报错了
原文:
https://www.jianshu.com/p/e0b584a00f4f
git pull报错error: cannot lock ref ‘refs/remotes/origin/xxx’:ref
git remote prune origin
有些分支在远程其实早就被删除了,但是在你本地依然可以看见这些被删除的分支,在根目录下运行 git remote prune origin刷新本地仓库与远程仓库的保持这些改动的同步,这样就不会报错了
原文:
https://www.jianshu.com/p/e0b584a00f4f