Skip to content

Instantly share code, notes, and snippets.

@amercier
Last active December 30, 2015 09:09
Show Gist options
  • Select an option

  • Save amercier/7807513 to your computer and use it in GitHub Desktop.

Select an option

Save amercier/7807513 to your computer and use it in GitHub Desktop.
bash <(curl -Ls https://gist.github.com/amercier/7807513/raw) <repo> <pr>
#!/usr/bin/env
# apply-pull-request.sh <repo> <pr>
# Ex: apply-pull-request.sh fabpot/Sami 47
curl -s https://github.com/$1/pull/$2.patch | patch -p1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment