GitHub搜索技巧


开源项目有哪些组成部分

  • name: 项目名
  • description: 项目的简要描述
  • 项目的源码
  • README.md: 项目的详细情况的介绍
  • 项目本身的star数和fork数
  • 项目的最近更新日期

命令

基本搜索命令:

  • 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

其它命令:

  • user:xxx //查找某个github用户
  • org:xxx //查找某个组织

 

例子

按照项目名搜索
搜索项目名里面包含React的项目:
in:name React
搜索项目名里面包含React的项目且项目的star数大于5000+:
in:name React stars:>5000
搜索项目名里面包含React的项目且项目的star和fork的数量大于5000:
in:name React stars:>5000 forks:>3000

按照README来搜索
搜索README.md里面包含React的项目:
in:readme React
搜索README.md里面包含React的项目,star数和fork数大于3000:
in:readme React stars:>3000 forks:>3000

按照description搜索
搜索项目描述(description)里面包含微服务的项目
in:description 微服务
搜索项目描述(description)里面包含微服务的项目,编程语言为python
in:description 微服务 language:python
搜索项目描述(description)里面包含微服务的项目,编程语言为python,且更新日期在2020-01-01之后
in:description 微服务 language:python pushed:>2020-01-01

 

posted @ 2020-03-13 22:50  -零  阅读(442)  评论(0编辑  收藏  举报