Coder Social home page Coder Social logo

fgit-rs's Introduction

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
  • 完善注释

fgit-rs's People

Contributors

batkiz avatar kevinzonda avatar slaughtering avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.