Only one branch is retrieved when shallow clone is made in GIT

前端 未结 1 1384
孤街浪徒
孤街浪徒 2021-01-20 02:59

I\'m trying to shrink a big repository to reduce server load. I\'m using the command

git clone --depth 1000 url

But when the clone is finis

1条回答
  •  情歌与酒
    2021-01-20 03:31

    Shallow clones default to only getting a single branch. If you want to get all branches, pass --no-single-branch to git clone.

    0 讨论(0)
提交回复
热议问题