Question:
I have cloned one repository from GitHub and after some time there was a new branch created on GitHub. However, when I am executing git branch -a command, that remote branch is not showing in my local repository tracking. How do I update the local list of remote branches?
Answer:
To update the local list of remote branches:
1 2 |
git remote update origin --prune |
To show all local and remote branches that (local) Git knows about:
1 |
git branch -a |