I’ve forked from a repo on GitHub. I want to get the code from a branch on another user’s fork.
Must I clone this user’s whole repo to a separate local repo or can I do something like git checkout link_to_the_other_users_branch?
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.
Note that there are multiple "correct" URIs you can use for the remote when you add it in the first step.
git@github.com:theirusername/reponame.gitis an SSH-based URIhttps://github.com/theirusername/reponame.gitis an HTTPS URIWhich one you prefer to use will depend on your situation. GitHub has a help article explaining the difference and helping you choose: Choosing a URL for your remote repository