---
name: "hub-checkout"
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-checkout"
---

# hub-checkout(1)

Check out the head of a pull request as a local branch.

## NAME

hub-checkout - Check out the head of a pull request as a local branch.

## SYNOPSIS

`hub checkout` *PULLREQ-URL* \[*BRANCH*\]

## EXAMPLES

```
$ hub checkout https://github.com/jingweno/gh/pull/73
> git fetch origin pull/73/head:jingweno-feature
> git checkout jingweno-feature
```

## SEE ALSO

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