https://stackoverflow.com/questions/36358265/when-does-git-refresh-the-list-of-remote-branches git remote update origin --prune To show all local and remote branches that (local) Git knows about git branch -a