基于flask, 加速 clone, download github 项目,fgh(fast github)
liuyuqi-dellpc 0f2863fd79 Merge branch 'release/0.6.0' | 6 months ago | |
---|---|---|
.github | 6 months ago | |
.vscode | 6 months ago | |
docs | 6 months ago | |
fgh | 6 months ago | |
scripts | 6 months ago | |
.dockerignore | 6 months ago | |
.env | 6 months ago | |
.gitignore | 6 months ago | |
.gitpod.yml | 6 months ago | |
.pre-commit-config.yaml | 6 months ago | |
Dockerfile | 6 months ago | |
README.md | 6 months ago | |
client.py | 6 months ago | |
docker-compose.debug.yml | 6 months ago | |
docker-compose.yml | 6 months ago | |
fgh-server.spec | 6 months ago | |
fgh.spec | 6 months ago | |
main.py | 6 months ago | |
poetry.lock | 6 months ago | |
pyproject.toml | 6 months ago | |
requirements.txt | 6 months ago |
加速 clone github 项目,下载 github blob 文件
服务端:
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