Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jayphelps/github-clone-pr
Clone a github PR easily using just the github.com PR URL
https://github.com/jayphelps/github-clone-pr
Last synced: 16 days ago
JSON representation
Clone a github PR easily using just the github.com PR URL
- Host: GitHub
- URL: https://github.com/jayphelps/github-clone-pr
- Owner: jayphelps
- Created: 2016-09-22T07:15:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-24T19:17:13.000Z (over 8 years ago)
- Last Synced: 2024-10-19T17:58:32.944Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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](https://github.com/blog/2247-improving-collaboration-with-forks).
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](https://github.com/jayphelps/git-blame-someone-else).
# Install
```shell
npm install -g github-clone-pr
```# Usage
```shell
clone-pr
```* url: https://github.com/:owner/:repo/pull/:number
* directory: where you want the repo cloned toe.g.
```shell
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:
```shell
git rebase upstream/master
```