Skip to content

Instantly share code, notes, and snippets.

@Raj1009
Forked from Rarst/getpatch.cmd
Created September 10, 2024 13:55
Show Gist options
  • Save Raj1009/1bdd88a7e1a2fdedf54efa7b074db489 to your computer and use it in GitHub Desktop.
Save Raj1009/1bdd88a7e1a2fdedf54efa7b074db489 to your computer and use it in GitHub Desktop.
Download a patch file from a GitHub branch. Arguments: repo name, branch name (e.g. `getpatch Rarst/wp-date trac-38771`).
curl https://github.com/%1/compare/master...%2.diff > patches/%2.diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment