Searching in GitHub

Although you weren’t around for the events that led to the sidebar’s implementation, many of those events live on in the project’s history. Searching the project’s repository for “sidebar” will give you a starting point.

There are two search methods available on GitHub: the global search at the top of the page and the scoped search available on certain repository tabs. They support the same syntax and function in the same way, with some key differences.

The search results are comprehensive, and include everything from code to issues to the Marketplace and even users. This is the best way to find mentions of key terms across multiple result types and repositories.

Global search

The global search enables you to use the complete search syntax to search across all of GitHub.

global-search

The search results are comprehensive, and include everything from code to issues to the Marketplace and even users. This is the best way to find mentions of key terms across multiple result types and repositories.

global search results

In our scenario, using the global search scoped to the current repository is a good way to find code and commits that mention the term “sidebar”. You will also likely get hits for issues and pull requests, although they’re not as easy to filter further in the global search results view.

To craft a complex global search, try the advanced search .