HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git pr — Check out GitHub pull requests locally. Part of `git-extras`. More information: <https://github.com/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
git prcommandpullgithubrequestsclioutcheck

Problem

How to use the git pr command: Check out GitHub pull requests locally. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-pr>.

Solution

git pr — Check out GitHub pull requests locally. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/main/Commands.md#git-pr>.

Check out a specific pull request:
git pr {{pr_number}}


Check out a pull request from a specific remote:
git pr {{pr_number}} {{remote}}


Check out a pull request from its URL:
git pr {{url}}


Clean up old pull request branches:
git pr clean

Code Snippets

Check out a specific pull request

git pr {{pr_number}}

Check out a pull request from a specific remote

git pr {{pr_number}} {{remote}}

Check out a pull request from its URL

git pr {{url}}

Clean up old pull request branches

git pr clean

Context

tldr-pages: common/git pr

Revisions (0)

No revisions yet.