github-clone-pr
v0.0.2
Published
magic
Downloads
2
Readme
github-clone-pr
NOTE: this is most useful when you are the maintainer of the target project and the PR user enabled fork collaboration.
Allows you to easily clone a Github PR with only the URL for the Pull Request from the UI.
Eventually I'd like to make this a true git addon e.g. git clone-pr
like I did for git-blame-someone-else.
Install
npm install -g github-clone-pr
Usage
clone-pr <url> <directory>
- url: https://github.com/:owner/:repo/pull/:number
- directory: where you want the repo cloned to
e.g.
clone-pr https://github.com/jayphelps/github-clone-pr/pull/1 some-place-you-want
It will also automatically create a remote for the upstream
, so you can do things like:
git rebase upstream/master