git如何查看最新的远程分支

查看远程分支

git branch -r 

查看本地和远程所有分支

git branch -a 

问题:别人删除了一些远程分支,我本地git branch -r/a 的时候,看到的时候删除之前的所有分支,如何更新远程分支列表?

解答:git remote update origin --prune

参考链接:https://cloud.tencent.com/developer/ask/77349

原文地址:https://www.cnblogs.com/beileixinqing/p/14082343.html