How to clone single branch from a repository git?

git clone -b <<---Branch Name-->> --single-branch <<----origin Endpoint----->>>


GitHub is most popular when it comes to collaborative work on code. It is widely used by corporate organizations as well as individual developers.


How to clone single branch from a repository git?
Source - Medium.com


How to clone single branch?

Suppose there are multiple branches of a repository and you want to clone only single branch out of that repository.

You can use the below command for the same - 


git clone -b <<---Branch Name-->> --single-branch <<----origin Endpoint----->>>





Comments