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的代码

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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值