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

bin+lib cargo-git-open

在网页浏览器中打开 git 仓库

2 个版本

0.0.9 2023年10月27日
0.0.8 2023年7月9日

#45 in #pull-request

MIT 许可证

260KB
324 代码行

git-open

CI Status crates.io

使用 git open 在网页浏览器中打开 git 仓库。

本项目受到 git-open 的启发。

使用方法

# 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

安装

源代码

您可以克隆仓库并从源代码安装。这需要您已安装 Rust。

git clone [email protected]:jsgv/git-open.git
cd git-open
make install

Cargo

cargo install cargo-git-open

或者,您可以从发行版部分下载一个可执行文件并将其放置在您的 $PATH 中。

为什么?

我想学习 Rust。

依赖项

~19–36MB
~605K SLoC