Alex Waters
Alex Waters

Reputation: 4360

How do I get the files from a public github repo pull request on my local computer?

How do I get the files from a public repo pull request on my local computer?

A developer submitted a pull request to a public repo (to which I don't have write access).

I want to test his code before I acknowledge the pull request.

How do I get the master of the public repo + his pull request on my local in order to compile and test it?

Upvotes: 1

Views: 229

Answers (1)

technoweenie
technoweenie

Reputation: 896

You can click the 'info' icon to get the git commands you need to run.

You can also get any pull request as a patch by appending .patch to the url. For instance:

https://github.com/github/github-services/pull/146.patch

Upvotes: 3

Related Questions