Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search Github repositories which have file with particular filename?

E.g.: I want to find all CRMs which have Dockerfile inside their repository.

I checked github help, but haven't found any suitable search qualifier. There is just filename: and in:file:, but it's not as desired, I need something like has_file: or in:filename

Any workaround?

like image 427
Paul Serikov Avatar asked Dec 04 '18 13:12

Paul Serikov


People also ask

How do I search for a filename in GitHub?

On GitHub.com, navigate to the main page of the repository. Above the list of files, click Go to file. In the search field, type the name of the file you'd like to find. In the list of results, click the file you wanted to find.

How do I search a GitHub repository?

To search within a particular repository or organization, navigate to the repository or organization page, type what you're looking for into the search field at the top of the page, and press Enter.

How do I see all files in a GitHub repository?

Use path:/ to search for files that are located at the root level of a repository. Or specify a directory name or the path to a directory to search for files that are located within that directory or any of its subdirectories.

How do I do an advanced search on GitHub?

Searching using a visual interface You can search GitHub Enterprise Server using the search page ( https://[hostname]/search ) or advanced search page ( https://[hostname]/search/advanced ). The advanced search page ( https://[hostname]/search/advanced ) provides a visual interface for constructing search queries.


1 Answers

The best workaround for this purpose is ..

search using in:path Dockerfile

This will also include directories consisting the word 'Dockerfile', but such results are quite unlikely.

like image 70
Keval Bhogayata Avatar answered Sep 17 '22 17:09

Keval Bhogayata