#cli #gitlab #bash #windows #github #browser #utility #open #repo #bash-script

app gho

cli to open your repo in the Github/Gitlab web ui

1 unstable release

0.2.4 Jan 11, 2023

#2046 in Command line utilities

MIT license

96 lines


A simple multi-platform cli utility written in Rust that opens your browser in your project’s repo on gitlab or github.

While a bash script like the following could work, that will not work on Windows:

gho ()
    ( set -e;
    git remote -v | grep push;
    echo "Using remote $remote";
    URL=$(git config remote.$remote.url | sed "s/git@\(.*\):\(.*\).git/https:\/\/\1\/\2/");
    echo "Opening $URL...";
    open $URL )

gho on the other hand, should work fine (testers and feedback are welcome).

The url is fetched on your remotes.


cargo install --locked --git https://github.com/chevdor/gho --tag v0.2.0


  • gho to simply open the first remote

  • gho upstream to open your upstream remote

Command line utility for the tera templating engine. You need to provide a template using the tera syntax as well as some data (various format are supported)

Usage: gh [REMOTE]

  [REMOTE]  Name of a remote

  -h, --help     Print help information
  -V, --version  Print version information


~231K SLoC