git何时刷新远程分支的列表? [英] When does git refresh the list of remote branches?

查看:1425
本文介绍了git何时刷新远程分支的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 git branch --all 显示所有的远程本地分支。什么时候git刷新这个列表?在拉/推?以及如何使用 git bash



来刷新它!

解决方案

显示本地git知道的所有本地和远程分支
$ b $

  git branch -a 

更新远程分支的本地列表:

  git remote update origin --prune 


Using git branch --all shows all remote and local branches. When does git refresh this list? On pull/push? And how to refresh it using git bash?

Thank you all a lot!

解决方案

To show all local and remote branches that (local) git knows about

git branch -a

To update the local list of remote branches:

git remote update origin --prune

这篇关于git何时刷新远程分支的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆