github的搜索技巧

1.in

  • xxx in:name 项目名包含 xxx 的
  • xxx in:description 项目描述包含 xxx 的
  • xxx in:readme 项目的 README 文件中包含 xxx 的
  • xxx repo:owner/name 匹配特定的仓库名称

 

2.is

  • xxx is:featured 匹配https://github.com/topics/上提供且含有“xxx”字样的主题
  • xxx is:not-featured 匹配https://github.com/topics/上未提供且含有“xxx”字样的主题
  • xxx is:curated 匹配精选项目且含有“xxx”字样的主题
  • xxx is:not-curated 匹配没有额外信息且含有“xxx”字样的主题


3.path

  • from path:common language:python 匹配目录common下 含有form的python文件

 

4.filename

  • filename:test_helper 匹配文件名为test_helper的文件
  • filename:.java test_helper 匹配含有test_helper字样的java文件

 

5.stars、forks

  • Django stars:>=2048 要查找 Stars 数不小于 2048 的 Django 项目
  • Django forks:>2048 Forks 大于等于 2048
  • Django forks:100..200 stars:80..100 

 

 6.pushed、created

  • pushed:>2019-01-03 spring cloud 项目在2019-01-03后更新的spring cloud项目
  • created:>2019-01-03 spring cloud 项目在2019-01-03后创建的spring cloud项目

 

7.license

  • license:apache-2.0 关键词  根据仓库的LICENSE搜索

 

8.user、language

  • user:GitSuperDrew languages:java
  • org:hibernate 根据组织查询项目

 

9.repostorie

  • repostorie:>5000  匹配超过5000个仓库的主题


10.location

  • location:china 国内开发者

 

11.项目内搜索

  • 【Go to file】按钮,输入文件名称,进行项目中文件检索

 

12.多个搜索条件用逗号隔开

  • django in:name,description docker,tornado in:readme stars:>5000 pushed:>2020-06-28

 

posted @ 2020-07-10 00:18  songjn  阅读(317)  评论(0编辑  收藏  举报