- Published on
How to Search Github for Specific Filenames and File Contents
- Yair Mark
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:
- Go to: https://github.com/search
- in the search bar type:
filename:.babelrc sourcemapand push enter
This will search github for all files called
.babelrc which contain the text inside
Other advanced search options can be found here.