Clone limited history for faster checkout.
Section: Repository Creation and Discovery
Shallow clone
bash
bash
git clone --depth 1 https://github.com/owner/repo.gitLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Repository Creation and Discovery
Partial clone with blob filter
Reduce object download size for large repos.
Initialize bare repository
Create a repository without a working tree for server or shared use.