Instagram Widget

How to clone a specific branch in git

If you are a developer then you would have come across git. You need to clone the already existing project to enhance it, bug fixes etc. 

Most of the git has branches. So we might need to clone specific branch from git. 

To clone the specific branch in git, syntax is:

git clone -b <branchname> <repository>

As for example view below command

git clone -b fun

Post a Comment