微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

github最全搜索技巧

github搜索技巧

在这里插入图片描述

cats stars:>1000 搜索 cats 且star大于1000的仓库
cats topics:>=5 搜索 cats 且标签数大于等于5的仓库
cats size:<10000 匹配 cats 且文件小于10KB的仓库
cats stars:<=50 匹配 cats 且star小于等于50的仓库

cats stars:10…* 匹配 cats 且stars大于等于10的仓库
cats stars:…10 匹配 cats 且stars小于等于10的仓库
cats stars:10…50 匹配 cats 且stars大于10且小于50的仓库
cats stars:10…
匹配cats且star大于等于10的仓库
cats stars:*…10 匹配cats且star小于等于10的仓库
cats stars:10…50 匹配cats且star大于10且小于50的仓库

日期条件

cats pushed:<2012-07-05 搜索在2012年07月05日前push代码,且cats作为关键字
cats pushed:2016-04-30…2016-07-04 日期区间
cats created:>=2017-04-01 创建时间

逻辑运算

and 、or、not、

排除运算

cats pushed:<2012-07-05 -language:java 搜索在2012年07-05日前push代码,且cats作为关键字,排除 java 语言仓库。

包含搜索

cats in:file 搜索文件中包含cats的代码
cats in:path 搜索路径中包含cats的代码
cats in:path,file 搜索路径、文件中包含cats的代码
console path:app/public language:javascript 搜索关键字console,且语言为javascript,在app/public下的代码

主体搜索

user:USERNAME 用户名搜索
org:``ORGNAME 组织搜索
repo:USERNAME/REPOSITORY 指定仓库搜索

文件大小

size :>1000 搜索大小大于1KB的文件

文件名称

filename:config.phP Language:PHP 搜索文件名为config.PHP,且语言为PHP代码

记几个常用的就好,毕竟常用才能记住

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐