Skip to content

Checkout a branch from a fork #23445

Answered by lee-dohm
Ben3eeE asked this question in New to GitHub
Discussion options

You must be logged in to vote

This is a great question!

For clarity, you’re wanting to test a PR to a GitHub repository that you own or maintain, let’s call it ben3eee/some-repo. That PR was submitted by someone who does not have push access to the repository, so they submitted the PR from a fork of the repository that you own or maintain. We’ll call that fork contributor/some-repo. You want to take a look at their changes in your local copy of ben3eee/some-repo as a branch.

First of all, you can find the most up-to-date information about this in the GitHub Help under Checking out pull requests locally. But for a little more background, when someone submits a PR, a Git reference (or “ref”) is created that stores the r…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants