Crates.io | gitopen |
lib.rs | gitopen |
version | 1.4.1 |
source | src |
created_at | 2021-11-29 20:38:43.420351 |
updated_at | 2024-03-29 20:09:23.351527 |
description | Command line utility to open a git repository's web page from terminal, as well as pull requests in the browser after the first push. |
homepage | https://github.com/oren0e/gitopen |
repository | https://github.com/oren0e/gitopen |
max_upload_size | |
id | 489482 |
size | 69,705 |
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.
make install
from the repo's directorycargo install gitopen
cargo install
are 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 $PATH
to be able to run programs you’ve installed with cargo install
.")Basic usages:
gitopen
.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.gitopen -c COMMIT
where COMMIT is the commit SHA.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
origin
which 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
Note that gitopen -r origin
is the same as gitopen
.
For help, use gitopen --help