When does Git refresh the list of remote branches?

后端 未结 5 586
清歌不尽
清歌不尽 2021-01-29 17:04

Using git branch --all shows all remote and local branches. When does Git refresh this list?

On pull/push? And how do I refresh it using G

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-29 17:32

    To update the local list of remote branches:

    git remote update origin --prune
    

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

    git branch -a
    

提交回复
热议问题