Is there a way to grep for something inside a Github project's code?
I could pull the source and grep it locally, but I was wondering if it's possible through the web interface or a 3rd-party alternative.
Ideas?
Is there a way to grep for something inside a Github project's code?
I could pull the source and grep it locally, but I was wondering if it's possible through the web interface or a 3rd-party alternative.
Ideas?
You have the advanced search GitHub form with include the repo:
directive to limit the search to a code repository.
Code Search
The Code search will look through all of the code publicly hosted on GitHub. You can also filter by :
- the language
language:
- the repository name (including the username)
repo:
- the file path
path:
For any sort of code searching, I would highly recommend Google Code Search http://www.google.com/codesearch. You can search github projects through google code search by specifying it in the package flag of the query. e.g. package:github.com/nabeelmukhtar/github-java-sdk.git GitHubService
You can search code by using regular expressions. They even have an API for it.