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
1 vote
0 answers
876 views

Clone a specific directory from git repo using Git-Python

My git repo is of more than 2GB in size. I need to clone this repo locally via python and do some updates to it. It is just enough if I clone a particular directory in it. How to accomplish this with ...
Arunachalam RM's user avatar