git远程删除分支但本地git branch -a仍能看到解决

git远程删除分支但本地git branch -a仍能看到解决

在gitlab页面删除分支

但是本地能可以看到

$ git branch -a
  br_dev
  br_to_delete
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/br_dev
  remotes/origin/br_to_delete
  remotes/origin/master

git remote prune origin命令即可删除

posted @ 2018-11-01 14:55  caimagic  阅读(1716)  评论(0编辑  收藏  举报