Created
November 8, 2017 12:50
-
-
Save isrmicha/2e9f015a9b66f2062c0e7e13a78c7318 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# clone only the remote primary HEAD (default: origin/master) | |
git clone --single-branch | |
as in: | |
git clone <url> --branch <branch> --single-branch [<folder>] | |
You can see it in t5500-fetch-pack.sh: | |
test_expect_success 'single branch clone' ' | |
git clone --single-branch "file://$(pwd)/." singlebranch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment