Skip to main content

All Questions

Tagged with
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
0 votes
1 answer
2k views

How to Clone Repository using GitPython

I am new to Python and Git. Found GitPython library to run Git commands using Python. I am trying to clone an already created private repository on Google Cloud to my local directory on Mac. My code ...
Hussain's user avatar