# Open a Pull Request for Reference
## 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...}]
```