#git #browser

bin+lib gitweb

Open the current remote repository in your browser

15 releases

new 0.2.5 Oct 17, 2020
0.2.4 Oct 17, 2020
0.1.13 Jun 20, 2020
0.1.12 May 15, 2020
0.1.4 Mar 5, 2019

#224 in Command line utilities

Download history 9/week @ 2020-06-30 11/week @ 2020-07-07 19/week @ 2020-07-14 7/week @ 2020-07-21 1/week @ 2020-07-28 3/week @ 2020-08-04 28/week @ 2020-08-11 12/week @ 2020-08-18 12/week @ 2020-08-25 18/week @ 2020-09-01 22/week @ 2020-09-08 1/week @ 2020-09-15 1/week @ 2020-09-22 14/week @ 2020-09-29 29/week @ 2020-10-06 66/week @ 2020-10-13

62 downloads per month


255 lines



Some of the flags and options are subject to change in the future. Ideas are welcome. Ideas are bulletproof (V).

gitweb is a command line interface I created mainly to learn Rust.



The Cargo way

cargo install gitweb

The binary way

Download the binary from the latest release and put it in your PATH.


gitweb will by default open the remote in the browser of the current repository.

gitweb 0.1.13

    gitweb [FLAGS] [OPTIONS]

    -h, --help       Prints help information
    -V, --version    Prints version information
    -v, --verbose    Set the verbosity of the command

    -b, --branch <branch>      Set the branch (alias for --tag)
    -B, --browser <browser>    Set the browser
    -c, --commit <commit>      Set a commit
    -r, --remote <remote>      Set the remote
    -t, --tag <tag>            Set the tag (alias for --branch)

--branch, --tag

gitweb will open the current branch or tag on the remote repository. You can override the behavior by giving either --branch or --tag flag with the custom branch or tag you want to open in the browser.


gitweb tries to start one of the following browser (in that order of priority):

  • --browser option given in the command line
  • $BROWSER on Linux 🐧 or %BROWSER% on Windows 🏁 (this is a non standard variable)
  • the default web browser on the system


gitweb will open the commit given as a parameter on the remote repository.


gitweb will open the origin remote if it exists. You can override the behavior by giving the --remote flag with the custom remote you want to open.


~346K SLoC