Created
February 6, 2014 15:19
-
-
Save c17r/8846197 to your computer and use it in GitHub Desktop.
Git: clone a branch without fetching other branches
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
mkdir $BRANCH | |
cd $BRANCH | |
git init | |
git remote add -t $BRANCH -f origin $REMOTE_REPO | |
git checkout $BRANCH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment