一,一般搜索。
1
>n cats stars:>1000 含关键词cats,并且star超过1000的仓库。
>=n cats topics:匹配有5个以上topics的含关键词cats的仓库。
<n cats size:<10000 匹配含关键词cats,小于10k的代码。
<=n cats stars:<=50
2
NOT hello NOT world 匹配含hello不含world的仓库
3
cats stars:>10 -language:javascript 组合形式
4
fork:true or fork:only
5 amazing language:javascript 匹配含amazing关键词的语言为javascript 的仓库
6
in:file octocat in:file 匹配在仓库描述octocat 的仓库(代码)
in:path octocat in:path 匹配文件路径有octcat的代码
7
filename:FILENAME filename:linguist matches files named "linguist."
filename:.vimrc commands matches .vimrc files with the word "commands." filename:test_helper path:test language:ruby matches Ruby files named test_helper within the test directory.
搜索仓库
8
in:name jquery in:name 匹配仓库名有jquery的仓库。
14topic:TOPIC topic:jekyll 匹配topic为jquery的仓库
搜索用户
9
type:user mike in:name created:<2011-01-01 type:user matches personal accounts named "mike" that were created before 2011.
type:org data in:email type:org matches organizations with the word "data" in their email.
10
in:login kenya in:login 匹配使用名为kenya的用户
in:fullname bolton in:fullname 匹配实名中含bolton的用户。
in:email data in:email 匹配email中含data的用户。
11
location:LOCATION repos:1 location:iceland 匹配在iceland的只有一个仓库的用户。