Help with shallow cloning please #1146
-
Hi. I'm trying to shallow clone a repository using Any help on how to simply shallow clone a repository? I'm looking for depth 1 clone of all branches. TIA |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@prateekatam by default go-git will download all tags, and so will their objects. In order to avoid that, you need to add |
Beta Was this translation helpful? Give feedback.
@prateekatam by default go-git will download all tags, and so will their objects. In order to avoid that, you need to add
Tags: git.NoTags
to yourCloneOptions
.