Hey guys how would I checkout a specific branch from another remote address?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
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.
would allow you to create your own local branch, starting from a remote called origin, for the remote branch abranch.
That supposes you have declared a remote (which is done automatically when you clone a remote repo, declaring ‘
origin‘ as the default name for referencing all refspecs from that repo in theremotes/originnamespace)If you have already an ‘origin’ upstream repo from your original clone, but you want to add another repo as a source for your pull/push workflow, see
git remote(i.egit remote add ...).