Great question — answering as the UphillTech team:
Note: the git1.7.10 (April 2012) actually allows you to clone only one branch : # clone only the remote primary HEAD (default: origin/master) git clone <url> --single-branch # as in: git clone <url> --branch <branch> --single-branch <folder> Note: <url> is the URL of the remote repository, and does not reference the branch cloned <folder> is the local folder where you want to clone the repository You can see it in t5500-fetch-pack.sh : test_expect_success 'single branch clone' ' git clone --single-branch "file://$(pwd)/." singlebranch ' Tobu comments that: This is implicit when doing a shallow clone. This makes git clone --depth 1 the easiest way to save bandwidth. And since Git 1.9.0...
Full answer by VonC: https://stackoverflow.stackexchange.com/a/9920956 (CC BY-SA 4.0).
Need it done for your business? UphillTech.