#git #browser

bin+lib gitweb

Open the current remote repository in your browser

21 releases

0.3.5 Mar 9, 2022
0.3.3 Oct 1, 2021
0.3.2 Jun 24, 2021
0.3.0 Jan 30, 2021
0.1.4 Mar 5, 2019

#1172 in Command line utilities

Download history 4/week @ 2022-12-01 8/week @ 2022-12-08 22/week @ 2022-12-15 3/week @ 2022-12-22 1/week @ 2022-12-29 1/week @ 2023-01-05 1/week @ 2023-01-12 2/week @ 2023-01-19 6/week @ 2023-01-26 6/week @ 2023-02-02 64/week @ 2023-02-09 50/week @ 2023-02-16 1/week @ 2023-02-23 2/week @ 2023-03-02 4/week @ 2023-03-09 45/week @ 2023-03-16

73 downloads per month


336 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 homebrew way

brew install yoannfleurydev/gitweb/gitweb
# or
brew tap yoannfleurydev/gitweb
brew install gitweb

๐Ÿ“ฆ The Cargo way

cargo install gitweb

โš™๏ธ The binary way

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

๐Ÿ–ฅ The MacPorts way

sudo port selfupdate
sudo port install gitweb


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

gitweb 0.3.1

    gitweb [FLAGS] [OPTIONS]

    -h, --help             Prints help information
    -M, --merge-request    Set the merge request flag
    -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 [env: 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.


~1M SLoC