{"meta":{"title":"Searching in forks","intro":"By default, forks are not shown in search results. You can choose to include them in repository searches, and in code searches if they meet certain criteria.","product":"Search on GitHub","breadcrumbs":[{"href":"/en/enterprise-cloud@latest/search-github","title":"Search on GitHub"},{"href":"/en/enterprise-cloud@latest/search-github/searching-on-github","title":"Searching on GitHub"},{"href":"/en/enterprise-cloud@latest/search-github/searching-on-github/searching-in-forks","title":"Searching in forks"}],"documentType":"article"},"body":"# Searching in forks\n\nBy default, forks are not shown in search results. You can choose to include them in repository searches, and in code searches if they meet certain criteria.\n\nTo show forks in repository search results, add `fork:true` or `fork:only` to your query. For more information, see [Searching for repositories](/en/enterprise-cloud@latest/search-github/searching-on-github/searching-for-repositories).\n\n> \\[!NOTE]\n> Forks can only be included in repository and code searches.\n\n## Repository search\n\nThe `fork:true` qualifier finds all results that match your search query, including forks. The `fork:only` qualifier finds *only* forks that match your search query.\n\n| Qualifier                                  | Example                                                                                                                                                                                     |\n| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `fork:true`                                | [**github fork:true**](https://github.com/search?q=github+fork%3Atrue\\&type=Repositories) matches all repositories containing the word \"github,\" including forks.                           |\n| `fork:only`                                | [**github fork:only**](https://github.com/search?q=github+fork%3Aonly\\&type=Repositories) matches all fork repositories containing the word \"github.\"                                       |\n| <code>forks:><em>n</em></code> `fork:only` | [**forks:>500 fork:only**](https://github.com/search?q=forks%3A%3E500+fork%3Aonly\\&type=Repositories) matches repositories with more than 500 forks, and only returns those that are forks. |\n\n## Code search\n\nGitHub code search uses `is:fork` instead of `fork:true` to include forked repositories in code search results. To exclude forks, use `NOT is:fork`. For more information, see [Understanding GitHub Code Search syntax](/en/enterprise-cloud@latest/search-github/github-code-search/understanding-github-code-search-syntax).\n\n| Qualifier     | Example                                                                                                                                                                                                           |\n| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `is:fork`     | [**android language:java is:fork**](https://github.com/search?q=android+language%3Ajava+is%3Afork\\&type=code) matches code with the word \"android\" that's written in Java, in forked repositories.                |\n| `NOT is:fork` | [**android language:java NOT is:fork**](https://github.com/search?q=android+language%3Ajava+NOT+is%3Afork\\&type=code) matches code with the word \"android\" that's written in Java, excluding forked repositories. |\n\n## Further reading\n\n* [Forks](/en/enterprise-cloud@latest/pull-requests/reference/forks)\n* [Understanding connections between repositories](/en/enterprise-cloud@latest/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories#listing-the-forks-of-a-repository)\n* [About searching on GitHub](/en/enterprise-cloud@latest/search-github/getting-started-with-searching-on-github/about-searching-on-github)"}