Note: This article refers to the classic GitHub search experience. If you are participating in the new code search and code view beta and have enabled the new functionality, the syntax for searching code and the GitHub.com search interface will differ. However, the search syntax for non-code search types will stay the same.
You can search globally across all of GitHub Enterprise Cloud, or scope your search to a particular repository or organization.
- To search globally across all of GitHub Enterprise Cloud, 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.
- You must be signed into a personal account on GitHub Enterprise Cloud to search for code across all public repositories.
- GitHub Pages sites are not searchable on GitHub Enterprise Cloud. 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 Enterprise Cloud, 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 Enterprise Cloud search uses an ElasticSearch cluster to index projects every time a change is pushed to GitHub Enterprise Cloud. Issues and pull requests are indexed when they are created or modified.
You can search for the following information across all repositories you can access on GitHub.com.
You can search GitHub Enterprise Cloud using the search page or advanced search page. Alternatively, you can use the interactive search in the GitHub Command Palette to search your current location in the UI, a specific user, repository or organization, and globally across all of GitHub Enterprise Cloud, without leaving the keyboard. For more information, see "GitHub Command Palette."
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.
If you use both GitHub.com and GitHub Enterprise Server or GitHub AE, and an enterprise owner has enabled unified search, you can search across both environments at the same time from GitHub Enterprise Server or GitHub AE. For more information, see the GitHub Enterprise Server documentation or the GitHub AE documentation.