使用GitHub高級搜索語法來搜索項目和代碼

使用GitHub高級搜索語法來搜索項目和代碼

前言

根據B站CodeSheep的視頻整理而成,致謝!

搜索開源項目

GitHub -Searching for repositories

選擇類型爲Repositories(默認類型):

說明 示例
根據項目名稱搜索: in:name spring boot in:name
根據項目描述搜索:in:description spring cloud in:description
根據項目README搜索 in:readme clickhouse in:readme
根據項目followers搜索:followers:n spring boot in:name followers:>100
根據項目stars搜索:stars:n spring boot in:name stars:>1000
根據項目forks搜索:forks:n spring boot in:name forks:>1000
根據項目最近提交時間搜索:pushed:YYYY-MM-DD spring boot in:name pushed:>2020-05-01
根據項目編程語言搜索:language:LANGUAGE excel in:description language:java stars:>1000

該方法常用來搜索最熱門、最活躍的開源項目。

搜索代碼

GitHub - Searching code

選擇類型爲Code:

說明 示例
查找文件中包含的文件: in:file xxx in:file
根據文件擴展名搜索: extension:EXTENSION xxx in:file extension:xml
根據編程語言搜索:language:LANGUAGE xxx in:fle language:go

該方法常用來監控是否有開發人員泄漏公司代碼。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章