Git Clone only a Single Branch
Cloning a Git repository gives you all the branches by default. Sometimes you might just want a single branch. To do that use:
git clone [url] -b [branch-name] --single-branch
reference: so:clone-only-one-branch
Cloning a Git repository gives you all the branches by default. Sometimes you might just want a single branch. To do that use:
git clone [url] -b [branch-name] --single-branch
reference: so:clone-only-one-branch