gerrit服务器上已经删除的远端分支,本地执行git branch -a 还是能看到, gerrit上面的remotes/origin/develop_feature_1.0已经删掉了,本地还是能看到:
执行git remote show origin 显示关联关系:
看到这条关键信息,没有被tracked
执行git remote prune origin就可删除:
再执行git branch -a 结果如下:
没有了remotes/origin/develop_feature_1.0,还能看到develop_feature_1.0分支是因为执行过git checkout develop_feature_1.0切出来的本地分支,可以使用git branch -D develop_feature_1.0 删掉:
在执行git branch -a 看看:
没有了