# Open a Pull Request for Reference
## Metadata
**Status**:: #x
**Zettel**:: #zettel/fleeting
**Created**:: [[2025-11-04]]
**Tags**:: #git
## Synopsis
Use `git-worktree` or [sindrets/diffview.nvim](https://github.com/sindrets/diffview.nvim).
## Git Worktree
```
git fetch upstream pull/$ID/head
git worktree add ../pr$ID FETCH_HEAD
```
## Diffview.nvim
Check out the pull request
```
gh pr checkout $ID
```
Open the diff view in nvim:
```
:DiffviewOpen [git rev] [options] [ -- {paths...}]
```