hello100 最近的时间轴更新
hello100

hello100

V2EX 第 413857 号会员,加入于 2019-05-20 10:44:16 +08:00
hello100 最近回复了
2019-06-17 10:52:05 +08:00
回复了 isleon 创建的主题 程序员 程序员们都有空健身吗?多久健身一次?
每天都在游戏里多跑一会儿。
2019-05-20 14:55:11 +08:00
回复了 frankcreen 创建的主题 程序员 如何借助 vultr 加速 git 代码的克隆
`git config --global http.proxy 代理地址`
`git config --global https.proxy 代理地址`
这种方法是不会起作用的,因为很多 repo 用的是 SSL 的地址,SSL 的地址不会使用 http 和 https 的 proxy。
真正的解决方法是使用 SSL 的 proxyCommand
在你的.ssh/config 中加入这么一行:
···
Host github.com
Hostname github.com
User XXXX
IdentityFile /home/XXXX/.ssh/id_rsa
ProxyCommand /bin/nc -X5 -x 172.0.0.2:1080 %h %p
···

最后一行会让 git 使用 172.0.0.2:1080 地址的 socket5 代理。我的 linux 跑在 VM 里,这个地址是我 windows 上的 s-s 的地址。
我这边上海电信可以轻松下载到 10MB/s
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2596 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 15:20 · PVG 23:20 · LAX 08:20 · JFK 11:20
Developed with CodeLauncher
♥ Do have faith in what you're doing.