使用 github 的正确姿势是什么?

2020-03-05 11:51:23 +08:00
 onice

github 的访问速度好慢啊,有时候头像也显示不出来。

pull 和 push 项目的速度都受不了。

考虑了国内的 gitee,但近期听说被 ddos 攻击了。

大家使用 github 的正确姿势是什么?

7733 次点击
所在节点    程序员
30 条回复
littleylv
2020-03-05 11:52:02 +08:00
梯子咯,还能怎样
arhaha
2020-03-05 11:54:04 +08:00
proxifier+梯子
mason961125
2020-03-05 11:54:52 +08:00
.ssh/config & ProxyCommand
Dvel
2020-03-05 12:01:03 +08:00
梯子 + ProxyCommand
rayhy
2020-03-05 12:16:49 +08:00
ssh.github.com 一般没墙。用这个域名
lostberryzz
2020-03-05 12:26:05 +08:00
梯子然后 gitconfig sshconfig 都设置下代理,完美使用
Myprincess
2020-03-05 12:51:34 +08:00
@rayhy 无法访问此网站 ssh.github.com 意外终止了连接
oed
2020-03-05 13:19:10 +08:00
linux 下的代理可以试试 proxychains,效果和第一条附言的 alias 的方案差不多。
优点是代理链的定制和扩展更自由。从 bash 切换到 fish 会继承不了 alias 过的内容,proxychains 用起来也更省心些
fengtons
2020-03-05 13:27:19 +08:00
github.com 以及相关的域名加入 gfwlist 列表
ExplorerLog
2020-03-05 13:39:36 +08:00
github.comgithub.global.ssl.fastly.net 的 IP 手动改 hosts
polymerdg
2020-03-05 14:28:28 +08:00
gitlab
yaoliyc
2020-03-05 16:57:46 +08:00
用 clash 这类客户端,用合适的规则
stevenbipt
2020-03-05 17:12:44 +08:00
被迫手动改过 hosts。。。没办法的办法吧
lookas2001
2020-03-05 18:13:54 +08:00
proxychain-ng+梯子
直连那速度简直无法直视
idragonet
2020-03-05 22:04:28 +08:00
梯子!!反正科学上网需要的
Wicked
2020-03-05 22:49:32 +08:00
加​钱​买​个​好​点​儿​的​梯​子​,​N​e​t​f​l​i​x​ ​4​K​ ​都​可​以​,​拉​个​ ​r​e​p​o​s​i​t​o​r​y​ ​轻​轻​松​松
jinliming2
2020-03-05 22:57:21 +08:00
git 不用设置全局代理,可以配置单域名代理:
HTTP/HTTPS 协议(注意,git 配置里代理设置不管 http 还是 https 都是 http.proxy ):
git config --global 'http.https://github.com.proxy' 'socks5h://localhost:port'
SSH 协议:
编辑 ~/.ssh/config 文件,添加:
Host github.com
ProxyCommand /usr/bin/nc -X 5 -x localhost:port %h %p
( nc 是 BSD 的 netcat 工具,%h %p 原样保留不用替换)
rayhy
2020-03-05 23:01:00 +08:00
care
2020-03-05 23:52:33 +08:00
@ExplorerLog 我广东电信用这方法也还是 20K
mogami95
2020-03-06 05:09:27 +08:00
正确姿势是在温哥华使用 github,逃:]

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

https://www.v2ex.com/t/650038

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

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

© 2021 V2EX