I've tried several time to clone a single branch from a git repo provided by my Org. I tried with git bash , tortoise but every time when i try to clone a single branch it started cloning the whole repo. Is there any particular solution for that?
Asked
Active
Viewed 2,022 times
1 Answers
1
You can use this command to solve your issue.
git clone --single-branch --branch <branchname> <remote-repo>

Sifat Haque
- 5,357
- 1
- 16
- 23