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的代码
记几个常用的就好,毕竟常用才能记住
原文地址:https://blog.csdn.net/weixin_47564737/article/details/120790790
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。