About searching on GitHub

Our integrated search covers the many repositories, users, and lines of code on GitHub AE.

You can search globally across all of GitHub AE, or scope your search to a particular repository or organization.

  • To search globally across all of GitHub AE, type what you're looking for into the search field at the top of any page, and choose "All GitHub" in the search drop-down menu.
  • 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.

Notes:

  • GitHub Pages sites are not searchable on GitHub AE. However you can search the source content if it exists in the default branch of a repository, using code search. For more information, see "Searching code." For more information about GitHub Pages, see "What is GitHub Pages?"
  • Currently our search doesn't support exact matching.
  • Whenever you are searching in code files, only the first two results in each file will be returned.

After running a search on GitHub AE, you can sort the results, or further refine them by clicking one of the languages in the sidebar. For more information, see "Sorting search results."

GitHub AE search uses an ElasticSearch cluster to index projects every time a change is pushed to GitHub AE. Issues and pull requests are indexed when they are created or modified.

Types of searches on GitHub

You can search for the following information across all repositories you can access on your enterprise.

Searching using a visual interface

Alternatively, you can search GitHub AE 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. 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

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.