Skip to content

Instantly share code, notes, and snippets.

@manuelmorales
Created July 4, 2012 14:19
Show Gist options
  • Select an option

  • Save manuelmorales/3047610 to your computer and use it in GitHub Desktop.

Select an option

Save manuelmorales/3047610 to your computer and use it in GitHub Desktop.
How to fetch a remote branch on git
# from http://stackoverflow.com/questions/67699/how-do-i-clone-all-remote-branches-with-git
git fetch
git branch -a
git checkout -b experimental origin/experimental
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment