💡 要成为一名合格的cv工程师,搜索是极为重要的技能。我这方面似乎还比较欠缺,每次搜索能否找到期望的结果基本取决于运气。自认为不能这样下去了,所以拿了一段时间来专门学习搜索的技巧,故有此文。
搜索引擎
github搜索
官方文档见:关于在 GitHub 上搜索 - GitHub 文档
范围查询
| 示例 |
作用 |
| vue stars:>1000 |
匹配含有 vue,stars数大于1000的仓库 |
| vue topics:>=5 |
有5个或更多主题的仓库 |
| vue size:<10000 |
匹配含有“vue”字样代码且大小小于10kb的文件 |
| vue created<=YYYY-MM-DD |
日期前创建的议题,除created外,还有pushed |
| vue stars:10…* |
star大于等于10 |
| vue stars:*…10 |
小于等于10 |
| vue stars:10…50 |
10到50 |
搜索属性
| 属性名 |
解释 |
类型 |
| stars |
stars数 |
int |
| topics |
主题数 |
int/string |
| size |
文件大小 |
int |
| framework |
框架 |
string |
| language |
语言 |
string |
| author |
作者 |
string |
| org |
组织 |
string |
| forks |
forks数 |
int |
| followers |
关注者 |
int |
| extension |
|
string |
| license |
许可证 |
string |
| is |
仓库公共还是私有 |
public/privat |
| mirror |
是否为镜像 |
bool |
| archived |
是否已存档 |
bool |
| help-wanted-issues |
标签为该属性的议题数 |
int |
| good-first-issues |
标签为该属性的议题数 |
int |
搜索位置
| 示例 |
作用 |
| vue in:name |
名称含有vue |
| vue in:name,description |
名称与说明 |
| vue in:readme |
|
排除
| 示例 |
作用 |
| hello NOT world |
匹配含有hello不含world的仓库 |
| vue -language:javascript |
排除以js编写的仓库 |
其他
| 示例 |
作用 |
| cats NOT “hello world” |
含有空格的查询需要被引号包裹起来 |
使用可视界面搜索
https://github.com/search/advanced
Issue搜索
| encoding user:heroku |
Encoding issues across the Heroku organization. |
| cat is:open |
Find cat issues that are open. |
| strange comments:>42 |
Issues with more than 42 comments. |
| hard label:bug |
Hard issues labeled as a bug. |
| author:mojombo |
All issues authored by mojombo. |
| mentions:tpope |
All issues mentioning tpope. |
| assignee:rtomayko |
All issues assigned to rtomayko. |
| exception created:>2012-12-31 |
Created since the beginning of 2013. |
| exception updated:<2013-01-01 |
Last updated before 2013. |