Last active
August 29, 2015 14:05
-
-
Save arnellebalane/b8c9321e3c94920aab3a to your computer and use it in GitHub Desktop.
git tracking remote branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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