GitHub高级搜索

GitHub高级搜索

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

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

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

    搜索代码

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

  • 注意事项:svg

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

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

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

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

    • repo:username/repository 须要指定用户名和仓库
  • 按照star搜索:
    • stars:>10
    • stars:10..50 10到50之间