Skip to content

Instantly share code, notes, and snippets.

@gasolin
Created January 26, 2015 06:38
Show Gist options
  • Select an option

  • Save gasolin/beef5a75492abf9d72fe to your computer and use it in GitHub Desktop.

Select an option

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