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

后端 未结 8 837
遇见更好的自我
遇见更好的自我 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:37

    In search input, you can use filename parameter to search in multiple repositories, for example:

    filename:my_filename.txt
    

    If you're looking for a filename in specific repository, you can just press t and start typing the file name (see: GH keyboard shortcuts).

提交回复
热议问题