github搜索之代码搜索
代码搜索
To search for code, use the following search qualifiers in any combination.
Tip:
Due to the complexity of searching code, there are a few restrictions on how searches are performed:
master
language:go
amazinglanguage:go
., : ; / \ ` ‘ " = * ! ? # $ & + ^ | ~ < >
( ) { } []
. The search will simply ignore these symbols.以上是代码搜索中需要注意的一些问题
默认搜索是从master分支搜索代码
只有小于384k的代码才是可以搜索到的
搜索的时候必须包含至少一个搜索关键词 如amazing
language:go
搜索语句不能有特殊字符如., : ; / \ ` ‘ " = * ! ? # $ & + ^ | ~ < > ( ) { } []
.
指定搜索方式
通过语言搜索代码
You can search for code based on what language it‘s written in. For example:
通过fork的数量或者是否有父节点的方式搜索
If you would like forked results to appear, add the
The
按照目录结构搜索
By including the
通过文件名搜索
You can use the
根据扩展名来搜索代码
The
通过用户或者组织来查找
To grab a list of code from all repositories owned by a certain user or organization, you can use the
原文地址:http://blog.csdn.net/i10630226/article/details/45540999