Git clone 国内下载慢问题,大家是如何解决的 2022-03-28

2022 年 3 月 28 日
 huajieyu

最近家里的电脑 neovim 插件版本升级,发现 clone 失败,搜了网上解决方案,修改 vim-plug 插件 github.com 为镜像地址,但是网上提供的镜像地址都不能用了,大家有什么好的解决方案吗,求救

26761 次点击
所在节点    程序员
98 条回复
powerman
2022 年 3 月 28 日
chnRoutes + iptables + ipset + v2ray 透明代理 出门 VPN 回家 标配无墙 啥都懒得配置
chicbian
2022 年 3 月 28 日
码云。
HanMeiM
2022 年 3 月 28 日
直接翻墙是最好的
feather12315
2022 年 3 月 28 日
软路由
lopssh
2022 年 3 月 28 日
梯子。。。
christin
2022 年 3 月 28 日
ghproxy.com 或者 GitHub 搜索 fastgithub
yucongo
2022 年 3 月 28 日
proxychains-ng
ColdBREW1999
2022 年 3 月 28 日
ssh proxy
leaves98
2022 年 3 月 29 日
clash for windows TUN 模式太好用了,git, windows terminal, wsl, vmware 全都给你自动代理,基本不需要手动配置,就是这么丝滑
jessun1990
2022 年 3 月 29 日
我在三处都加了代理:
1. ~/.config/git/config
[http]
proxy = http://127.0.0.1:1087
[https]
proxy = http://127.0.0.1:1087

2. 在 git clone 的 所在的命令行使用
export LOCAL_HTTP_PROXY='http://127.0.0.1:1087'
export all_proxy='$LOCAL_HTTP_PROXY'; export http_proxy='$LOCAL_HTTP_PROXY'; export https_proxy='$LOCAL_HTTP_PROXY'; git config --global http.proxy '$LOCAL_HTTP_PROXY'; git config --global https.proxy '$LOCAL_HTTP_PROXY'
该命令与 1 有重合部分

3. ~/.ssh/config

Host github.com
HostName github.com
User git
ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=1087

Host githubusercontent.com
HostName githubusercontent.com
User git
ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=1087
其中需要 socat 命令
huangsen365
2022 年 3 月 29 日
zenlayer 的加速线路
Karte
2022 年 3 月 29 日
MrKrabs
2022 年 3 月 29 日
那你怎么上 v2 的
c4fun
2022 年 3 月 29 日
如果没有科学上网的话,可以用国内的 jihulab.com ,相当于国内的 gitlab.com
standin000
2022 年 3 月 29 日
vincent7245
2022 年 3 月 29 日
找个靠谱的机场,两三百块钱爽一年
EricTing
2022 年 3 月 31 日
用 cfworker 搭一个 reserve-proxy
blackmao
2022 年 7 月 6 日
使用梯子吧 12 块钱一个 https://www.xflash.pro

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://v2ex.ih06.com/t/843313

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX