Git prune 大家帮忙想想办法让已经失效的远程 branch-name 在执行 git branch -a 的时候不再展示吧 清理远程分支,把本地不存在的远程分支删除 git remote prune origin