在gitlab上删除分支后,本地git branch -r还能看到

1. git remote prune --dry-run origin 查看当前有哪些是该消失还存在的分支

  

2. git remote prune origin删除上面展示的所有分支

  

3. git fetch --prune origin

  如果没有结果输出说明已经删除完成了

 

转载于:https://www.cnblogs.com/lyraLee/p/10916504.html