Skip to content

Instantly share code, notes, and snippets.

@harryzhurov
Created May 31, 2021 07:22
Show Gist options
  • Save harryzhurov/1adc431efb08d06461ef234e9411b006 to your computer and use it in GitHub Desktop.
Save harryzhurov/1adc431efb08d06461ef234e9411b006 to your computer and use it in GitHub Desktop.
Clone with nested submodules
1. Single command
git clone --branch <branch-name> --recursive <url>
2. Step by step
git clone <url>
git co <branch-name>
git submodule update --init --recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment