git-branch-pr

Shows or opens the Pull Request (PR) for the current branch

Want to easily open the GitHub Pull Request associated with a branch?

git branch-pr -o

-o tells it to open in your default browser, otherwise it’ll just output the link to the PR.

Requires: GitHub’s gh cli tool

Usage

USAGE: git branch-pr [-b branch] [-o open in browser] [-h]
       -b specify the branch to reference (defaults to current branch)
       requires the gh command line tool to be installed.
       To see this usage call it with -h

Metadata:

Tags:

  • gh
  • git
  • github
  • pr