---
name: "hub-apply"
section: "1"
platform: "linux"
package: "hub"
version: "2.14.2-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/hub-apply"
---

# hub-apply(1)

Download a patch from GitHub and apply it locally.

## NAME

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

## SYNOPSIS

`hub apply` *GITHUB-URL*

## OPTIONS

*GITHUB-URL*

A URL to a pull request or commit on GitHub.

## EXAMPLES

```
$ 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
```

## SEE ALSO

[hub-am(1)](/hub-am/1.md), [hub(1)](/hub/1.md), [git-apply(1)](/git-apply/1.md)
