GitHub高级搜索

GitHub高级搜索

  • 官网帮助文档:https://help.github.com/articles/getting-started-with-searching-on-github/

  • 官网提供的高级搜索界面:https://github.com/search/advanced

  • 基础语法: https://help.github.com/articles/understanding-the-search-syntax/

    搜索代码

  • 搜索代码的帮助文档:https://help.github.com/articles/searching-code/

  • 注意事项:

    1. 只能搜索小于384 KB的文件
    2. 只能搜索少于500,000个文件的存储库。
    3. 不能使用这些字符搜索:. , : ; / \ ` ’ ” = * ! ? # $ & + ^ | ~ < > ( ) { } [ ] 将会被直接忽略。
  • 文件名搜索:

    • filename:config.php
    • filename:.php move_uploaded_file 搜索后缀名为php的文件,并且这个文件中包含move_uploaded_file
    • filename:test path:upload language:php 在使用php语言的仓库搜索路径中包括upload的文件名中含有test的文件
  • 拓展名搜索:

    • extension:php
  • 文件大小搜索:
    • size:>10000
  • 文件内容搜索:

    • otocat in:file,path 匹配代码中或者路径中出现otocat的
  • 搜索仓库:

    • repo:username/repository 需要指定用户名和仓库
  • 按照star搜索:
    • stars:>10
    • stars:10..50 10到50之间
  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值