Reputation: 7186
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 finished I only have one branch. The branches not cloned are new (3 weeks or so) and the history cloned has 3 months, so those branches has to be inside that history. If I try to search all branches with
git branch -a
only one branch is shown.
Any ideas? Thanks in advance!
Upvotes: 4
Views: 125
Reputation: 19025
Shallow clones default to only getting a single branch. If you want to get all branches, pass --no-single-branch
to git clone
.
Upvotes: 5