git-clone

How to do a shallow clone using GitPython

How to do a shallow clone using GitPython Question: 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.git ./Projects/ Cloning into ‘./Projects’… remote: Enumerating objects: 4145, done. remote: Counting objects: 100% (71/71), done. remote: Compressing objects: 100% …

Total answers: 2