|1.4.0||May 25, 2023|
|1.3.3||Feb 19, 2023|
|1.3.1||Jul 12, 2022|
|1.2.1||Feb 11, 2022|
|1.1.1||Nov 29, 2021|
#189 in Development tools
25 downloads per month
A command line utility to open git repository page in the browser from the repository location in terminal.
Currently tested only on mac (prior to M1 chip).
Note: You have to have rust installed with cargo to be able to install this utility.
From Github (this repository)
- Clone the repo
make installfrom the repo's directory
From crates.io with Cargo
cargo install gitopen
(From The Book: "All binaries installed with
cargo installare stored in the installation root’s bin folder. If you installed Rust using rustup.rs and don’t have any custom configurations, this directory will be
$HOME/.cargo/bin. Ensure that directory is in your
$PATHto be able to run programs you’ve installed with
- When in git repository in terminal, run
- After you've opened a branch and you are ready to push and open a PR, run
gitopen -p. This will push the changes to the current branch and open the PR in the browser. This can be done at any stage during the work on the PR, not just when you're making the first push.
- You can open a specific commit. Use
gitopen -c COMMITwhere COMMIT is the commit SHA.
- You can open a specific line number of a file. Use
gitopen -l <PATH TO FILE>:<LINE NUMBER>(note that you have to use the
:separator between the file path and the line number). Example:
> gitopen -l /src/main.rs:10
- If you've added a remote (other than
originwhich is the default) e.g. for a forked repository so the remote is the original repository URL, you can use gitopen to open that remote by specifying its name, for example:
> gitopen -r upstream
gitopen -r origin is the same as
For help, use