Skip to main content

This version of GitHub Enterprise Server will be discontinued on 2026-09-22. Discontinued releases are not supported. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features in GitHub Enterprise Server, see Overview of the upgrade process. For help with the upgrade, GitHub Enterprise Support.

Searching for repositories

You can search for repositories on GitHub and narrow the results using these repository search qualifiers in any combination.

You can search for repositories globally across all of GitHub, or search for repositories within a particular organization. For more information, see About searching on GitHub.

To include forks in the search results, you will need to add fork:true or fork:only to your query. For more information, see Searching in forks.

Tip

  • This article contains links to example searches on the GitHub.com website, but you can use the same search filters in any GitHub platform. In the linked example searches, replace github.com with the hostname for your GitHub platform.
  • For a list of search syntaxes that you can add to any search qualifier to further improve your results, see Understanding the search syntax.
  • Use quotations around multi-word search terms. For example, if you want to search for issues with the label "In progress," you'd search for label:"in progress". Search is not case sensitive.

Search by repository name, description, or contents of the README file

With the in qualifier you can restrict your search to the repository name, repository description, repository topics, contents of the README file, or any combination of these. When you omit this qualifier, only the repository name, description, and topics are searched.

QualifierExample
in:namejquery in:name matches repositories with "jquery" in the repository name.
in:descriptionjquery in:name,description matches repositories with "jquery" in the repository name or description.
in:topicsjquery in:topics matches repositories labeled with "jquery" as a topic.
in:readmejquery in:readme matches repositories mentioning "jquery" in the repository's README file.
repo:owner/namerepo:octocat/hello-world matches a specific repository name.

Search based on the contents of a repository

You can find a repository by searching for content in the repository's README file using the in:readme qualifier. For more information, see About the repository README file.

Besides using in:readme, it's not possible to find repositories by searching for specific content within the repository. To search for a specific file or content within a repository, you can use the file finder or code-specific search qualifiers. For more information, see Finding files on GitHub and Searching code.

QualifierExample
in:readmeoctocat in:readme matches repositories mentioning "octocat" in the repository's README file.

Search within a user's or organization's repositories

To search in all repositories owned by a certain user or organization, you can use the user or org qualifier.

QualifierExample
user:USERNAMEuser:defunkt forks:>100 matches repositories from @defunkt that have more than 100 forks.
org:ORGNAMEorg:github matches repositories from GitHub.

Search by repository size

The size qualifier finds repositories that match a certain size (in kilobytes), using greater than, less than, and range qualifiers. For more information, see Understanding the search syntax.

QualifierExample
size:nsize:1000 matches repositories that are 1 MB exactly.
size:>nsize:>=30000 matches repositories that are at least 30 MB.
size:<nsize:<50 matches repositories that are smaller than 50 KB.
size:n..nsize:50..120 matches repositories that are between 50 KB and 120 KB.

Search by number of followers

You can filter repositories based on the number of users who follow the repositories, using the followers qualifier with greater than, less than, and range qualifiers. For more information, see Understanding the search syntax.

QualifierExample
followers:>=nnode followers:>=10000 matches repositories with 10,000 or more followers mentioning the word "node".
followers:n..nstyleguide linter followers:1..10 matches repositories with between 1 and 10 followers, mentioning the word "styleguide linter."

Search by number of forks

The forks qualifier specifies the number of forks a repository should have, using greater than, less than, and range qualifiers. For more information, see Understanding the search syntax.

QualifierExample
forks:nforks:5 matches repositories with only five forks.
forks:>nforks:>=205 matches repositories with at least 205 forks.
forks:<nforks:<90 matches repositories with fewer than 90 forks.
forks:n..nforks:10..20 matches repositories with 10 to 20 forks.

Search by number of stars

You can search repositories based on the number of stars the repositories have, using greater than, less than, and range qualifiers. For more information, see Saving repositories with stars and Understanding the search syntax.

QualifierExample
stars:nstars:500 matches repositories with exactly 500 stars.
stars:n..n size:<n