How do I clone a specific Git branch?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
git clone -b <branch> <remote_repo>
In order to clone a specific branch, you have to execute “git branch” with the “-b” and specify the branch you want to clone.
git clone -b <branch> <remote_repo>