This question already has an answer here:
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
?
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.git
is an SSH-based URIhttps://github.com/theirusername/reponame.git
is an HTTP URIWhich one you prefer to use will depend on your situation: GitHub has a help article explaining the difference and helping you choose: Which remote URL should I use?
amalloy's suggestion didn't work for me. This did:
Resources: