How to update the list of remote branches in Git from the server?

How can I update the list of remote branches in Git?

I clicked the Git branch on the server. On the second local copy of the repository, I want to get this branch and do:

show branch -r

But I do not have a new branch on this list.

How can I update the list of deleted Git branches?

+5
source share
1 answer

In the second local repository:

git fetch # Retrieves updates from remote repo git branch -a # View all local and remote branches 
+5
source

All Articles