Git: List remote branches

Updated . Posted . Visible to the public.

Sometimes you may need to figure out what branches exist on a remote repository so you can pull them down and check them out, merge them into your local branches, etc. You can see the remote branches by saying

git branch -r

Or, if you want to see both local and remote branches, you can say

git branch -a
Last edit
Keywords
git, makandra
License
Source code in this card is licensed under the MIT License.
Posted by Lexy to makandra dev (2011-09-26 08:39)