在 GitHub 的搜索框里:

使用搜索关键词可以在 GitHub 上快速的找你需要的开源项目:

限制搜索范围
通过 in 关键词 (大小写不敏感) 限制搜索范围:
| 公式 | 搜索范围 |
|---|---|
| in:name xxx | 项目名包含xxx |
| in:description xxx | 项目描述包含xxx |
| in:readme xxx | 项目介绍文档包含xxx |
例如:搜索项目名包含 "chat"、项目描述包含 "ChatGPT"、项目介绍文档包含 "Docker" 的项目。
bash
in:name "chat" in:description "ChatGPT" in:readme "Docker"
限制Star或Fork数量
| 公式 | 搜索范围 |
|---|---|
| stars:>xxx | Star (关注) 数大于xxx |
| stars:xx...xx | Star (关注) 数在xx...xx之间 |
| forks:>xxx | Fork (拷贝) 数大于xxx |
| forks:xx...xx | Fork (拷贝) 数在xx...xx之间 |
例如:搜索项目名包含 "chat"、项目描述包含 "ChatGPT"、项目介绍文档包含 "Docker"、Star (关注) 数大于 9000、Fork (拷贝) 数大于 900 的项目。
bash
in:name "chat" in:description "ChatGPT" in:readme "Docker" stars:>9000 forks:>900
限制开发语言
| 公式 | 搜索范围 |
|---|---|
| language:xxx | 开发语言包括xxx |
例如:搜索项目名包含 "chat"、项目描述包含 "ChatGPT"、项目介绍文档包含 "Docker"、Star (关注) 数大于 9000、Fork (拷贝) 数大于 900、开发语言包括 TypeScript 的项目。
bash
in:name "chat" in:description "ChatGPT" in:readme "Docker" stars:>9000 forks:>900 language:TypeScript
限制更新或创建日期
| 公式 | 搜索范围 |
|---|---|
| pushed:> YYYY-MM-DD | 最后更新日期大于YYYY-MM-DD |
| created:> YYYY-MM-DD | 创建日期大于YYYY-MM-DD |
例如:搜索项目名包含 "chat"、项目描述包含 "ChatGPT"、项目介绍文档包含 "Docker"、Star (关注) 数大于 9000、Fork (拷贝) 数大于 900、、开发语言包括 TypeScript、最后更新日期大于 2023-06-01 的项目。
bash
in:name "chat" in:description "ChatGPT" in:readme "Docker" stars:>9000 forks:>900 language:TypeScript pushed:>2023-09-01
限制开发者地区
| 公式 | 搜索范围 |
|---|---|
| location:xxx | 开发者所在地区为xxx |
限制仓库大小
| 公式 | 搜索范围 |
|---|---|
| size:>=xxx | 代码仓库大小大于等于xxxKb |