This command could save you from depression

```

$ gh pr checkout

```

Reply to this note

Please Login to reply.

Discussion

Hahaha

Just few days ago I found out a plain solution without the gh client:

`git fetch origin pull//head:local_branch`

you won't be able to push to an external contributors remote with that though, right? such a pita.

You need also the contributor's branch, plus adding the new origin:

```

git push contributor local_branch:contributor_branch

```

Yes, quite pita.

Without github CLI:

```

git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"

git checkout pr/

` ``

Probably need to fetch/pull too before checking out the PR

What is a and where can I find it?

Yip. I even just used it to merge a PR that was made to the main repo of the Primal web app to my fork of Primal.

it didn’t work.