是否有可能在GitHub上搜索特定的文件名? [英] Is it possible to search for a particular filename on GitHub?

查看:219
本文介绍了是否有可能在GitHub上搜索特定的文件名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道GitHub网页界面可以让你搜索所有的存储库,查找具有特定路径名的文件(例如搜索路径:/app/models/user.rb code>>> 109k结果),但有没有办法搜索独立于子目录位置的文件名的所有存储库?我尝试在路径参数中使用星号,这似乎并不奏效。 解决方案

search user.rb in:path 做你想做的事情?
另外还有一个搜索 filename:user.rb



https://help.github.com/articles/searching-code/


I know that the GitHub web interface lets you search all repositories for files with a particular pathname (e.g. searching for path:/app/models/user.rb yields >109k results), but is there a way to search all repositories for filenames independent of their subdirectory location? I tried using asterisks in the path argument, and that didn't seem to work.

解决方案

Does the search user.rb in:path do what you want to do? Alternatively there is also this search filename:user.rb

Found on: https://help.github.com/articles/searching-code/

这篇关于是否有可能在GitHub上搜索特定的文件名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆