Print the destination URL without open 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 --no-browser

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