提高 github 访问速度

  1. 访问站长工具网站(http://tool.chinaz.com/dns/),查询`github.com`的DNS信息。

  2. 复制查询到的IP地址(TTL 时间较短的一个),例如220.205.243.166

  3. 打开电脑的hosts文件

    • Linux、Mac

      /etc/hosts

    • Windows

      C:\Windows\System32\drivers\etc\hosts

  4. 文件最后添加新行

    1
    220.205.243.166 github.com
  5. 刷新DNS缓存

    • Windows:使用win+R快捷键打开命令提示符窗口,执行ipconfig /flushdns命令
    • Linux、Mac:不需要
  6. 刷新后尝试重新访问github.com

搜索技巧

  • in:name xxx // 按照项目名搜索

  • in:readme xxx // 按照 README 搜索

  • in:description xxx // 按照 description 搜索

  • stars:>xxx //stars 数大于 xxx

  • forks:>3000 //forks 数大于 xxx

  • language:xxx // 编程语言是 xxx

  • pushed:>YYYY-MM-DD // 最后更新时间大于 YYYY-MM-DD