git-删除远程不存在的分支

本地存在很多不存在的远程分支,清理那些不存在的远程分支操作


 一、查看本地和远程分支

git branch -a

二、查看本地分支对应远程分支的状态

git remote show origin

 三、删除没有对应的远程分支

git remote prune origin


 再使用命令 git branch -a  查看,没有那些不存在的远程分支了

原文地址:https://www.cnblogs.com/lwcode6/p/13642530.html