Skip to content

Instantly share code, notes, and snippets.

@arnellebalane
Last active August 29, 2015 14:05
Show Gist options
  • Save arnellebalane/b8c9321e3c94920aab3a to your computer and use it in GitHub Desktop.
Save arnellebalane/b8c9321e3c94920aab3a to your computer and use it in GitHub Desktop.
git tracking remote branch
// make sure that the remote branch is
// available in the local repository
git fetch
// all of these create branch "develop"
// to track remote branch "origin/develop"
git branch develop origin/develop
git checkout -b develop origin/develop
git checkout --track origin/develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment