基于flask, 加速 clone, download github 项目,fgh(fast github)

liuyuqi-dellpc 0f2863fd79 Merge branch 'release/0.6.0' 1 month ago
.github f51258a256 v1 1 month ago
.vscode ebb0c1648e init 1 month ago
docs f10fd7582a 1 1 month ago
fgh 279604feaa 1 1 month ago
scripts cff0c6fb6f modify windowes command 1 month ago
.dockerignore ebb0c1648e init 1 month ago
.env f51258a256 v1 1 month ago
.gitignore 648402b854 fix path 1 month ago
.gitpod.yml f51258a256 v1 1 month ago
.pre-commit-config.yaml ebb0c1648e init 1 month ago
Dockerfile f51258a256 v1 1 month ago
README.md f51258a256 v1 1 month ago
client.py 39420c198c 1 1 month ago
docker-compose.debug.yml ebb0c1648e init 1 month ago
docker-compose.yml f51258a256 v1 1 month ago
fgh-server.spec f51258a256 v1 1 month ago
fgh.spec f51258a256 v1 1 month ago
main.py f51258a256 v1 1 month ago
poetry.lock f51258a256 v1 1 month ago
pyproject.toml f51258a256 v1 1 month ago
requirements.txt f51258a256 v1 1 month ago

README.md

fgh

加速 clone github 项目,下载 github blob 文件

Usage

  • 服务端:

    docker compose up -d
    
  • 客户端:

编辑.env文件,填写服务端地址,执行:

# clone repo
fgh clone https://github.com/xx/yy.git
fgh push https://github.com/xx/yy.git

# download file
fgh wget https://ghproxy.org/https://github.com/microsoft/vscode/archive/refs/tags/1.84.2.zip
fgh wget https://ghproxy.org/https://raw.githubusercontent.com/microsoft/vscode/main/README.md

fgh curl -O https://ghproxy.org/https://github.com/microsoft/vscode/archive/refs/tags/1.84.2.zip
fgh curl -O https://ghproxy.org/https://raw.githubusercontent.com/microsoft/vscode/main/README.md

Reference

License

  • 请遵守 Apache License 2.0 协议,参见 LICENSE 文件。
  • 请合规使用,不得用于非法用途。