gcopr
Quickly checkout a pull request for the current repository.
Features
- Fetches commits without adding local branches or remotes.
- Supports forks.
Setup
-
Install jq
-
Clone this repo somewhere, then link the shell script into your
PATH
. Assuming~/bin
is in yourPATH
, you could do this:ln -s /path/to/repo/gcopr.sh ~/bin/gcopr
Usage
Let's say you'd like to test the changes of pull request #123:
- Go to your working copy.
- Run
gcopr 123
. - Done!