#git-repository #browser #git #open #pull-request #github #web

bin+lib cargo-git-open

Open a git repository in a web browser

2 releases

0.0.9 Oct 27, 2023
0.0.8 Jul 9, 2023

#2935 in Command line utilities

33 downloads per month

MIT license

260KB
324 lines

git-open

CI Status crates.io

Open git repositories in a web browser with git open.

This project was inspired by git-open.

Usage

# open repository in browser
git open

# open current commit
git open -c

# open current branch
git open -b

# open pull request for current branch
# local branch/head must match the pull request branch
# only supported for GitHub
git open --pr

# default remote name is `origin`
# can specify a different remote with `-r`
git open -r upstream

# print only
git open -p

Installation

Source

You can clone the repo and install from source. This requires you to have rust installed.

git clone git@github.com:jsgv/git-open.git
cd git-open
make install

Cargo

cargo install cargo-git-open

Or you can download one of the binaries from the releases section and place it somewhere in your $PATH.

Why?

I wanted to learn Rust.

Dependencies

~22–36MB
~635K SLoC