Published on

How to Search Github for Specific Filenames and File Contents

Authors

Often times while trying to understand how a piece of tech works, looking at an example helps the most. The problem is in many cases no amount of GoogleFu or searching on Stackoverflow will return decent examples.

Google also does not seem to pick up many files on Github.

Luckily it is possible using Github's advanced search feature to search for a particular filename and file contents:

This will search github for all files called .babelrc which contain the text inside sourcemap.

Other advanced search options can be found here.