Skip to content

FastGitORG/fgit-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fgit

FastGit 是一个适用于 GitHub 的加速服务,fgit 是为方便使用 FastGit 而开发的命令行工具。

对于本身拥有代理服务的用户,我们推荐您使用 git 自身的代理功能。

~/.gitconfig 中加入如下配置:

[http]
    proxy = http://127.0.0.1:1234
[https]
    proxy = http://127.0.0.1:1234
; 1234 为代理软件提供的端口号

fgit-rs 目前仍为早期版本,如有bug/建议请开issue。

fgit-rs 在到达 1.0 版本之前暂无 release 计划,但可在 GitHub Actions 中下载编译好的二进制文件。

功能

clone

fgit clone <url> <dir>

<url> 必须存在,其应该为一个 GitHub 的 repo 链接(https/ssh 协议均可)。

<dir> 是可选项,即指定 clone 到本地时的文件夹名称。

fgit 首先会把 github 的链接替换为 FastGit 的链接,然后调用 git clone 命令,最后将 remote "origin" 的 url 再替换为 github 的链接。

pull

fgit pull

执行此命令时,fgit 会将 remote "origin" 的 url 替换为 fasthub 的,然后调用 git pull 命令,最后再将其改回原 url。

dl

fgit dl <url>

fgit 将支持的 url 替换为 FastGit 提供的镜像,然后下载。

支持的链接可见 fastgit 的文档

LICENSE

使用 fgit 时,我们自动认为您同意了 FastGit 的服务条款

如果您对该条款持有不同意见,请勿使用本程序。

fgit 的源代码以 MIT LICENSE 开源

所涉及的第三方库或源代码:

to-do && 已知问题

  • git clone 的所有命令行选项提供支持
  • 由于 fastgit 的反代 headers 中不存在 content-length ,下载功能可能会受到影响已由上游修复
  • --verbose flag
  • 完善注释

About

🔧 A rust-written tool to do git operation with fastgit easily

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages