Is it possible to search for a particular filename on GitHub?

后端 未结 8 834
遇见更好的自我
遇见更好的自我 2021-01-30 01:27

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 >

8条回答
  •  清酒与你
    2021-01-30 01:40

    I refined @andy-lester answer with intitle:, i.e. I want to find where's located the file simple_spinner_item.xml in Android's source code hosted on github, so I search on Google this string:

    site:github.com intitle:simple_spinner_item.xml github.com/android
    
    ^                       ^                       ^
    |                       |                       |
    on github site          |                       |
                            |                       |
    filename I'm searching -+                       |
                                                    |
    github user ------------------------------------+
    

提交回复
热议问题