DOKK / manpages / debian 10 / hub / hub-apply.1.en
HUB-APPLY(1) Hub Manual HUB-APPLY(1)

hub-apply - Download a patch from GitHub and apply it locally.

hub apply GITHUB-URL

A URL to a pull request or commit on GitHub.

$ hub apply https://github.com/jingweno/gh/pull/55
> curl https://github.com/jingweno/gh/pull/55.patch -o /tmp/55.patch
> git apply /tmp/55.patch

hub-am(1), hub(1), git-apply(1)

March 2019 GITHUB