Skip to content

Instantly share code, notes, and snippets.

@gasolin
Created January 26, 2015 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gasolin/beef5a75492abf9d72fe to your computer and use it in GitHub Desktop.
Save gasolin/beef5a75492abf9d72fe to your computer and use it in GitHub Desktop.
apply/reverse patch from PR
# apply patch from PR
$ curl https://github.com/mozilla-b2g/gaia/pull/12345.patch | git apply
# reverse patch from PR, R is for reverse
$ curl https://github.com/mozilla-b2g/gaia/pull/12345.patch | git apply -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment