Skip to content

Instantly share code, notes, and snippets.

@Irio
Created March 2, 2012 19:53
Show Gist options
  • Save Irio/1960872 to your computer and use it in GitHub Desktop.
Save Irio/1960872 to your computer and use it in GitHub Desktop.
Git clone remote branch to a new local branch
$ git fetch RemoteName
$ git checkout RemoteName/branch_name
$ git checkout -b RemoteName_branch_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment