Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tibawatanabe/e8559cef541491bba0932aa56919745c to your computer and use it in GitHub Desktop.
Save tibawatanabe/e8559cef541491bba0932aa56919745c to your computer and use it in GitHub Desktop.
git clone a single branch limiting commits
git clone -b <your_branch> --single-branch <your_repository_url> --depth <number_of_commits>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment