从 GitHub 下载补丁并本地应用它。
语法
hub apply
GITHUB-URL
选项
- GITHUB-URL
- GitHub 上的拉取请求或提交的 URL。
示例
$ 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 apply
GITHUB-URL
$ 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