Skip to content

Instantly share code, notes, and snippets.

@sumardi
Created November 12, 2012 06:56
Show Gist options
  • Select an option

  • Save sumardi/4057873 to your computer and use it in GitHub Desktop.

Select an option

Save sumardi/4057873 to your computer and use it in GitHub Desktop.
[Git] Clone remote branch
$ git clone git://example.com/myproject
$ cd myproject
$ git branch
* master
$ git branch -a
* master
origin/HEAD
origin/master
origin/v1.0-stable
origin/experimental
$ git checkout -b experimental origin/experimental
$ git branch
master
* experimental
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment