<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Github on 豆博草堂</title><link>https://idocbox.com/tags/github/</link><description>Recent content in Github on 豆博草堂</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 06 Aug 2018 00:00:00 +0000</lastBuildDate><atom:link href="https://idocbox.com/tags/github/index.xml" rel="self" type="application/rss+xml"/><item><title>解决github克隆代码慢</title><link>https://idocbox.com/posts/%E8%A7%A3%E5%86%B3github%E5%85%8B%E9%9A%86%E4%BB%A3%E7%A0%81%E6%85%A2/</link><pubDate>Mon, 06 Aug 2018 00:00:00 +0000</pubDate><guid>https://idocbox.com/posts/%E8%A7%A3%E5%86%B3github%E5%85%8B%E9%9A%86%E4%BB%A3%E7%A0%81%E6%85%A2/</guid><description>&lt;p&gt;在大陆，clone github上的项目或者提交时速度极慢，原因是部分网址访问不畅，这些网址包括，&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;global-ssl.fastly.net
github.global.ssl.fastly.net
github.com
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;有一种办法可以加快访问速度，将clone速度由原来30k/s左右提高到1M/s上下。&lt;/p&gt;
&lt;p&gt;具体办法为， 访问 &lt;a href="https://www.ipaddress.com"&gt;https://www.ipaddress.com&lt;/a&gt; 这个网址，查询上述域名对应ip，然后在hosts文件中添加绑定关系。比如，我现在查询到的ip，绑定地址为,&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;151.101.112.249 global-ssl.fastly.net
151.101.113.194 github.global.ssl.fastly.net
192.30.253.112 github.com
192.30.253.112 www.github.com
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;如果过段时间速度慢下来了，可以上ipaddress.com 再次查询最新ip，然后更新hosts中绑定来重试。&lt;/p&gt;</description></item></channel></rss>