
例如咱们要clone这个项目:
git clone [email protected]:molisoft/gollum.git
那么将地址修改为
git clone [email protected]:molisoft/gollum.git
github.com 改为 clonegithub.com
就好啦~
然后如果是http方式clone,那么是不支持https
例如:
https://github.com/molisoft/gollum.git
需要改为普通的http方式
http://clonegithub.com/molisoft/gollum.git
...试试看吧~ try try ..= =
clonegithub.com 是我注册的,然后是我搞的这么一个服务,为了的是解决大家的clone问题~ 然后~ 大项目挺吃流量的~ 能赞助一下极好:
1 Busy Jun 23, 2015 $ whois clonegithub.com Whois Server Version 2.0 Domain names in the .com and .net domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information. Domain Name: CLONEGITHUB.COM Registrar: HICHINA ZHICHENG TECHNOLOGY LTD. Sponsoring Registrar IANA ID: 420 Whois Server: grs-whois.hichina.com Referral URL: http://www.net.cn Name Server: LV3NS3.FFDNS.NET Name Server: LV3NS4.FFDNS.NET Status: ok http://www.icann.org/epp#OK Updated Date: 23-jun-2015 Creation Date: 23-jun-2015 Expiration Date: 23-jun-2016 >>> Last update of whois database: Tue, 23 Jun 2015 05:53:42 GMT <<< |
2 402645707 Jun 23, 2015 看上去是nginx的流量转发, 表示自己搭了一个用来下googlevideo的 不过不敢公开 |
7 clino Jun 23, 2015 改成 git:// 试试 |
9 moliliang OP @Havee 况且如果只是clone的话,github又不需要你输出帐号密码。你要push代码,修改 .git/config 中的 url地址为github的地址就好了。 |
12 Daniel65536 Jun 23, 2015 via iPad @moliliang SNI代理 |
13 moliliang OP @Daniel65536 没看懂 |
15 hging Jun 23, 2015 为什么不自己开shadowsocks 然后在git的配置文件里加proxy呢. git又不是不支持sock5代理 |
18 moliliang OP @ThreeBody 最开始我用haproxy 直接绑定443端口,直接转发https,但是。你的https请求的 host必须是github.com ,否则github那边会报错。haproxy又不能在tcp层修改你的请求host。 |
19 phoenixlzx Jun 23, 2015 https 用 sniproxy |
20 moliliang OP @phoenixlzx 我试试看 |
21 moliliang OP @phoenixlzx 没啥意义啊,跟haproxy一样。除非本地修改host指定我们的服务器ip,然后进行https clone,但是用户怎么浏览github啊。。所以还是之前的方案好了。 @Daniel65536 |
22 heaventear Mar 27, 2017 不用这么麻烦,其实就需要挂个梯子,我用的是天路加速器, 看他们官网的命令行加速教程 https://91tianlu.com/knowledgebase.php |
23 heaventear Apr 8, 2017 一劳永逸的解决办法是挂个加速器,教程在这里 https://91tianlu.cn/knowledgebase.php?action=displayarticle&id=7 |
24 explore8989 Jan 29, 2019 上面的链接挂了, 教程在这里 91tianlu.agency/knowledgebase.php?action=displayarticle&id=7 |