Skip to content

Instantly share code, notes, and snippets.

@knight42
Created December 19, 2017 11:23
Show Gist options
  • Save knight42/56dbc1302d409318fb34fa5441dae5a7 to your computer and use it in GitHub Desktop.
Save knight42/56dbc1302d409318fb34fa5441dae5a7 to your computer and use it in GitHub Desktop.
Git clone a single branch
# Excerpt from https://stackoverflow.com/a/14930421/4725840
git clone -b mybranch --single-branch git://sub.domain.com/repo.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment