How to update remote branch list on local machine?

Leave a comment Standard

I can never remember how do to this, lol. Probably because I don’t use it often enough but since I was looking for it today I thought I’d be nice and share.

Weblog

(Update 2014-07-21:  As per feedback from commenters)

If you are sure that remote server repo contains more branches and they are not shown when you type

$ git branch -a

OR

$ git branch -r

Then you have to update your remote list, by:

$ git remote update origin –prune

Assuming your remote is named as origin (This is true most of times).

View original post

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s