Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
github-如何在特定文件夹中搜索文本_Github - Fatal编程技术网

github-如何在特定文件夹中搜索文本

github-如何在特定文件夹中搜索文本,github,Github,在Github中,我使用左上角的搜索窗口在存储库中进行搜索 我知道最好的方法是下载代码并搜索,但有时我做不到 问题 如何将搜索限制在特定文件夹内 这就是路径:选项的作用,请参阅 例如,在mozilla/MozDef中查找“searchquery”,但仅在tests/lib目录中查找: searchquery repo:mozilla/MozDef path:/tests/lib 或者以URL的形式 https://github.com/search?q=searchquery+repo%3Am

在Github中,我使用左上角的搜索窗口在存储库中进行搜索

我知道最好的方法是下载代码并搜索,但有时我做不到

问题


如何将搜索限制在特定文件夹内

这就是
路径:
选项的作用,请参阅

例如,在mozilla/MozDef中查找“searchquery”,但仅在tests/lib目录中查找:

searchquery repo:mozilla/MozDef path:/tests/lib
或者以URL的形式

https://github.com/search?q=searchquery+repo%3Amozilla%2FMozDef+path%3A%2Ftests%2Flib