hub-apply(1) hub manual hub-apply(1)

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

hub apply GITHUB-URL

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)
17 Apr 2021 hub version 2.14.2