Open a specific branch in the web browser

gh browse

  • Open a GitHub repository in the browser or print the URL.
    More information: <https://cli.github.com/manual/gh_browse>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

gh browse --branch {{branch_name}}

click the source code to copy install gh browse on any operating system with command-not-found.com