Skip to main content

All Questions

5 votes
2 answers
6k views

How to do a shallow clone using GitPython

I am trying to do a shallow/partial clone of a repository using GitPython. Here is the git CLI command: $ git clone -v --filter=tree:0 --filter=blob:none --sparse [email protected]:gitlab-org/gitlab-docs....
Kartikeyan Gupta's user avatar