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

2022-03-28 10:44:34 +08:00
 huajieyu

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

23313 次点击
所在节点    程序员
98 条回复
powerman
2022-03-28 19:29:23 +08:00
chnRoutes + iptables + ipset + v2ray 透明代理 出门 VPN 回家 标配无墙 啥都懒得配置
chicbian
2022-03-28 19:45:57 +08:00
码云。
HanMeiM
2022-03-28 20:05:20 +08:00
直接翻墙是最好的
feather12315
2022-03-28 20:57:04 +08:00
软路由
lopssh
2022-03-28 22:34:37 +08:00
梯子。。。
christin
2022-03-28 22:41:47 +08:00
ghproxy.com 或者 GitHub 搜索 fastgithub
yucongo
2022-03-28 22:56:08 +08:00
proxychains-ng
jaggerjiang
2022-03-28 23:13:29 +08:00
ssh proxy
leaves98
2022-03-29 00:11:00 +08:00
clash for windows TUN 模式太好用了,git, windows terminal, wsl, vmware 全都给你自动代理,基本不需要手动配置,就是这么丝滑
jessun1990
2022-03-29 00:15:49 +08:00
我在三处都加了代理:
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-03-29 02:16:34 +08:00
zenlayer 的加速线路
Karte
2022-03-29 09:13:05 +08:00
MrKrabs
2022-03-29 09:31:48 +08:00
那你怎么上 v2 的
c4fun
2022-03-29 10:18:58 +08:00
如果没有科学上网的话,可以用国内的 jihulab.com ,相当于国内的 gitlab.com
standin000
2022-03-29 10:32:10 +08:00
vincent7245
2022-03-29 15:23:14 +08:00
找个靠谱的机场,两三百块钱爽一年
EricTing
2022-03-31 15:59:11 +08:00
用 cfworker 搭一个 reserve-proxy
blackmao
2022-07-06 17:46:22 +08:00
使用梯子吧 12 块钱一个 https://www.xflash.pro

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

https://tanronggui.xyz/t/843313

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

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

© 2021 V2EX