You can use our powerful search tools to find what you're looking for among the millions of repositories, users, and lines of code on GitHub.

To search on GitHub, type what you're looking for into the search field at the top of any page, or into the search fields on the search or advanced search page.

At the top of repository pages, the search field will be scoped to the current repository. To remove the repository scoping and search all of GitHub, type a backspace in the search field to delete "This repository."

You can search the following types of information across all public GitHub repositories, and all private GitHub repositories you have access to:

Note: You must be logged in to search for code across all public repositories.

GitHub Pages sites are not searchable on GitHub. However you can search the source content if it exists in the default branch of a repository, using code search.

After running a search on GitHub, you can sort the results, or further refine them by clicking one of the languages in the sidebar.

Under the hood, we use an ElasticSearch cluster to index projects every time a change is pushed to GitHub. Issues and pull requests are indexed when they are created or modified.

Advanced search

The advanced search page provides a visual interface for constructing search queries. You can filter your searches by a variety of factors, such as the number of stars or number of forks a repository has. As you fill in the advanced search fields, your query will automatically be constructed in the top search bar.

Advanced Search

Further reading