GitHub 技巧

GitHub 访问和下载

问题:GitHub 访问不了或下载慢
原因:GitHub 的 CDN 被墙屏了。
解决方法:绕过 DNS 解析,在本地直接绑定 host,该方法也可用于其他 CDN 被屏蔽的网站。
原理:找出 GitHub 域名所对应的 IP 地址,直接添加在本地 host 中。每次请求 GitHub 时就无需再向 DNS 查询地址。
操作:

  1. 访问ipaddress,查看网站域名对应的 IP 地址,输入网址则可查阅对应的 IP 地址。

  2. 修改 host 文件
    Windows 中 host 文件在 C:\Windows\System32\drivers\etc 下。
    修改 host 文件如下:

    1
    2
    3
    4
    5
    6
    # localhost name resolution is handled within DNS itself.
    # 127.0.0.1 localhost
    # ::1 localhost

    192.30.253.112 github.com
    151.101.113.194 github.global.ssl.fastly.net
  3. 刷新 DNS
    Windows:cmd 执行 ipconfig/flushdns
    mac:sudo dscacheutil –flushcache

GitHub 的使用

进入个人主页 Followers 表示跟随者和粉丝
进入主页

进入项目 stars 和 fork 表示该项目的受欢迎程度

进入项目

Branch: 分支

Branch分支

Tag: 标签

Tag标签

比较代码分支之间的区别:在项目之后输入/compare

vue

commits 提交 branch 分支 contributors 贡献者
commits\branch\contributors

Issues 评论\留言\bug 追踪\特性追踪
Issues

Pull requests 提交请求\贡献

Projects 项目管理

Wiki 维基百科

Insights 统计信息

Webhooks 消息钩子

开源项目搜索

项目名称中带 spring boot 并且 star 数超过 3000 fork 超过 300
in:name spring boot stars:>3000 forks:>300

项目描述中带 spring boot
in:readme spring boot stars:>3000 forks:>300

描述里搜索微服务相关的项目 语言 java 最近提交时间大于 2019-09-03

in:description 微服务 language:java pushed:>2019-09-03

以上是我对下列视频及文章的归纳和总结。
程序员宝库,开源社区 GitHub 到底该怎么玩
如何高效地在网上找开源项目做!
GitHub上重要的几个搜索技巧
Github 搜索技巧,快速找到好资源
GitHub 全球用户排行榜

github 高级搜索

作者

Fallen-down

发布于

2020-01-16

更新于

2020-11-30

许可协议

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

评论

You forgot to set the shortname for Disqus. Please set it in _config.yml.
You need to set client_id and slot_id to show this AD unit. Please set it in _config.yml.