
If you want to clone a remote repository in git, but you do not want to clone out the default master of the main branch from the origin, well you can do that using the following way,
Syntax:
git clone -b <branch_name> <remote_repo_url>
Example:
% git clone us-east-1-branch https://github.com/code2care/CustomRatingBarExample.git

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!