My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Cloning a single GIT branch

Cecil Phillip's photo
Cecil Phillip
·Dec 15, 2017

I usually just used the default clone mode that pretty much pulls down everything. I came across a huge repo and only needed one of the branches. Well... here came single branch clone to the rescue.

git clone [url] -b [branch-name] --single-branch\