Skip to content

Instantly share code, notes, and snippets.

@brev
Created May 14, 2015 21:30
Show Gist options
  • Save brev/b65565df93e9acbc9ed1 to your computer and use it in GitHub Desktop.
Save brev/b65565df93e9acbc9ed1 to your computer and use it in GitHub Desktop.
Git checkout remote branch and track
# Checkout remote branch and track (without renaming needs)
git fetch origin
git checkout --track origin/branchname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment