github-proxy:有效改善 clone github repo 过慢的问题

时间:2021-07-08 07:32:23
【文件属性】:
文件名称:github-proxy:有效改善 clone github repo 过慢的问题
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-08 07:32:23
JavaScript Attention 目前的实现有点问题,比如无法处理 git push git@github.com:author/repo.git 这是什么 作为一个序员,经常会显式/隐式地执行 git clone git@github.com:author/repo.git,但因为某些原因,这个操作会执行很长的时间,然后生活就不再美好了。 这个脚本要解决的就是 clone github repo 过慢的问题。 实现原理 在执行 git clone git@github.com:author/repo.git 命令时,将 git@github.com: 重定向到此脚本,然后这里会判断是否已经 clone 过该 repo,如果是的话,直接返回,不然就去 github 获取一下,然后存到本地。 使用方法 服务端需要安装 nodejs,然后执行 ./github-proxy /location/you/wan
【文件预览】:
github-proxy-master
----README.md(1KB)
----github-proxy(2KB)
----LICENSE(1KB)

网友评论