Search for code
About GitHub Code Search
You can search, navigate and understand code across GitHub with code search.
Get started with search
About searching on GitHub
Our integrated search covers the many repositories, users, and lines of code on GitHub.
Get started with search
Finding files on GitHub
You can search for a file in a repository using the file finder. To search for a file in multiple repositories on GitHub, use the path code search qualifier.
Search for code
Searching code (legacy)
You only need to use the legacy code search syntax if you are using the code search API.
Get started with search
Searching commits
You can search for commits on GitHub and narrow the results using these commit search qualifiers in any combination.
Search for work and community content
Searching discussions
You can search for discussions on GitHub and narrow the results using search qualifiers.
Find repositories and resources
Searching for packages
You can search for packages on GitHub and narrow the results using search qualifiers.
Find repositories and resources
Searching for repositories
You can search for repositories on GitHub and narrow the results using these repository search qualifiers in any combination.
Search for work and community content
Searching gists
You can search for gists on GitHub and narrow the results using search qualifiers.