我的博客
欢迎来到我的博客
bunny.icu

git clone失败的解决方案

git clone失败的解决方案

git clone失败的解决方案

git clone https://github.com/Wesley1999/binance_quant.git

有时候由于网络问题,无法访问github

可以使用镜像网站解决,在github后面加上fast

git clone https://githubfast.com/Wesley1999/binance_quant.git

但是对于私有仓库,会出现没有权限的问题,需要生成access token

访问https://github.com/settings/tokens/new

有效期可以选择长期,repo需要勾上

生成后即可clone私有仓库

git clone https://<username>:<access_token>@githubfast.com/Wesley1999/binance_quant.git

Reference

https://github.com/runningcheese/MirrorSite?tab=readme-ov-file

https://ghproxy.com/

版权声明


本作品系原创, 转载须遵循 CC BY-NC-ND 4.0 许可协议
本文标题:git clone失败的解决方案
本文链接:https://www.bunny.icu/archives/1760

推荐文章

发表评论

textsms
account_circle
email

bunny.icu

git clone失败的解决方案
git clone失败的解决方案 git clone https://github.com/Wesley1999/binance_quant.git 有时候由于网络问题,无法访问github 可以使用镜像网站解决,在github后面加上fast git clone…
扫描二维码继续阅读
2024-01-28