# リポジトリを検索する

GitHubでリポジトリを検索し、これらのリポジトリ検索修飾子を任意の組み合わせで使用して結果を絞り込むことができます。

GitHub全体でリポジトリをグローバルに検索したり、特定の組織内のリポジトリを検索したりできます。 詳しくは、「[GitHubでの検索について](/ja/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/about-searching-on-github)」をご覧ください。

検索結果にフォークを含めるには、クエリに `fork:true` または `fork:only` を追加する必要があります。 詳しくは、「[フォーク内を検索する](/ja/enterprise-server@3.22/search-github/searching-on-github/searching-in-forks)」をご覧ください。

> \[!TIP]
>
> * この記事には、GitHub.com の Web サイトでの検索例へのリンクが含まれていますが、同じ検索フィルターはあらゆる GitHub プラットフォームで使えます。 リンクされている検索例で、`github.com` を GitHub プラットフォームのホスト名に置き換えてください。
> * 検索結果をさらに改善するために検索修飾子を追加できる検索構文の一覧については、「[検索構文を理解する](/ja/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)」を参照してください。
> * 複数単語の検索用語は引用符で囲みます。 たとえば "In progress" というラベルの問題を検索したい場合は、`label:"in progress"` と検索します。 検索では、大文字と小文字は区別されません。

## リポジトリ名、説明、または README ファイルの内容で検索

`in` 修飾子によって、リポジトリ名、リポジトリの説明、リポジトリのトピック、README ファイルの内容や、これらの組み合わせに限定した検索ができます。 この修飾子を省略した場合は、リポジトリの名前、説明、トピックだけが検索されます。

| 修飾子                                                                                                                                                     | 例 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | - |
| `in:name`                                                                                                                                               |   |
| \[                                                                                                                                                      |   |
| **jquery in:name**]\(<https://github.com/search?q=jquery+in%3Aname&type=Repositories>) は、リポジトリ名に「jquery」を含むリポジトリとマッチします。                                |   |
| `in:description`                                                                                                                                        |   |
| \[                                                                                                                                                      |   |
| **jquery in:name,description**]\(<https://github.com/search?q=jquery+in%3Aname%2Cdescription&type=Repositories>) は、リポジトリ名または説明に「jquery」を含むリポジトリとマッチします。 |   |
| `in:topics`                                                                                                                                             |   |
| \[                                                                                                                                                      |   |
| **jquery in:topics**]\(<https://github.com/search?q=jquery+in%3Atopics&type=Repositories>) は、トピックとして "jquery" というラベルが付いているリポジトリとマッチします。                 |   |
| `in:readme`                                                                                                                                             |   |
| \[                                                                                                                                                      |   |
| **jquery in:readme**]\(<https://github.com/search?q=jquery+in%3Areadme&type=Repositories>) は、リポジトリの README ファイル内で「jquery」について言及するリポジトリとマッチします。          |   |
| `repo:owner/name`                                                                                                                                       |   |
| \[                                                                                                                                                      |   |
| **repo:octocat/hello-world**]\(<https://github.com/search?q=repo%3Aoctocat%2Fhello-world>) は、特定のリポジトリ名とマッチします。                                          |   |

## リポジトリの内容で検索

`in:readme` 修飾子を使用すると、リポジトリの README ファイルの内容に基づいてリポジトリを検索できます。 詳しくは、「[リポジトリの README ファイルについて](/ja/enterprise-server@3.22/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes)」をご覧ください。

リポジトリ内の特定の内容を検索するには `in:readme` を使用する以外の方法はありません。 リポジトリ内の特定のファイルや内容を検索するには、ファイルファインダー、またはコード固有の検索修飾子を使います。 詳細については、 [GitHubでのファイルの検索](/ja/enterprise-server@3.22/search-github/searching-on-github/finding-files-on-github) と [コード](/ja/enterprise-server@3.22/search-github/searching-on-github/searching-code)を参照してください。

| 修飾子                                                                                                                                               | 例 |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | - |
| `in:readme`                                                                                                                                       |   |
| \[                                                                                                                                                |   |
| **octocat in:readme**]\(<https://github.com/search?q=octocat+in%3Areadme&type=Repositories>) は、リポジトリの README ファイル内で「octocat」について言及するリポジトリとマッチします。 |   |

## ユーザまたは Organization のリポジトリ内の検索

特定のユーザーまたは organization が所有するすべてのリポジトリを検索するには、`user` または `org` 修飾子を使用できます。

| 修飾子                                                                                                                                                         | 例 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | - |
| <code>user:<em>USERNAME</em></code>                                                                                                                         |   |
| \[                                                                                                                                                          |   |
| **user:defunkt forks:>100**]\(<https://github.com/search?q=user%3Adefunkt+forks%3A%3E%3D100&type=Repositories>) は、フォークの数が 100 個を超える @defunkt のリポジトリとマッチします。 |   |
| <code>org:<em>ORGNAME</em></code>                                                                                                                           |   |
| \[                                                                                                                                                          |   |
| **org:github**]\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub&type=Repositories>) はGitHubのリポジトリと一致します。                                          |   |

## リポジトリのサイズで検索

`size` 修飾子は、より大きい修飾子、より小さい修飾子、範囲の修飾子を使うことで、特定のサイズ (キロバイト) に合致するリポジトリを検索します。 詳しくは、「[検索構文を理解する](/ja/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)」をご覧ください。

| 修飾子                                                                                                                  | 例 |
| -------------------------------------------------------------------------------------------------------------------- | - |
| <code>size:<em>n</em></code>                                                                                         |   |
| \[                                                                                                                   |   |
| **size:1000**]\(<https://github.com/search?q=size%3A1000&type=Repositories>) は、ぴったり 1 MB のリポジトリとマッチします。              |   |
| <code>size:><em>n</em></code>                                                                                        |   |
| \[                                                                                                                   |   |
| **size:>=30000**]\(<https://github.com/search?q=size%3A%3E%3D30000&type=Repositories>) は、30 MB 以上のリポジトリとマッチします。      |   |
| <code>size:<<em>n</em></code>                                                                                        |   |
| \[                                                                                                                   |   |
| **size:<50**]\(<https://github.com/search?q=size%3A%3C50&type=Repositories>) は、50 KB 未満のリポジトリとマッチします。                |   |
| <code>size:<em>n..n</em></code>                                                                                      |   |
| \[                                                                                                                   |   |
| **size:50...120**]\(<https://github.com/search?q=size%3A50..120&type=Repositories>) は、50 KB から 120 KB のリポジトリとマッチします。 |   |

## フォロワーの数の検索

より大きい修飾子、より小さい修飾子、範囲の修飾子とともに `followers` 修飾子を使用すると、リポジトリをフォローしているユーザーの数に基づいてリポジトリをフィルタリングできます。 詳しくは、「[検索構文を理解する](/ja/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)」をご覧ください。

| 修飾子                                                                                                                                                                                              | 例 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | - |
| <code>followers:>=<em>n</em></code>                                                                                                                                                              |   |
| \[                                                                                                                                                                                               |   |
| **node followers:>=10000**]\(<https://github.com/search?q=node+followers%3A%3E%3D10000>) は、「node」という単語について言及する、10,000 人以上のフォロワーを持つリポジトリとマッチ一致します。                                                |   |
| <code>followers:<em>n..n</em></code>                                                                                                                                                             |   |
| \[                                                                                                                                                                                               |   |
| **styleguide linter followers:1..10**]\(<https://github.com/search?q=styleguide+linter+followers%3A1..10&type=Repositories>) は、「styleguide linter」という単語について言及する、1 人から 10 人のフォロワーを持つリポジトリとマッチします。 |   |

## フォークの数で検索

`forks` 修飾子はより大きい修飾子、より小さい修飾子、範囲の修飾子を使って、リポジトリが持つべきフォークの数を指定します。 詳しくは、「[検索構文を理解する](/ja/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)」をご覧ください。

| 修飾子                                                                                                                    | 例 |
| ---------------------------------------------------------------------------------------------------------------------- | - |
| <code>forks:<em>n</em></code>                                                                                          |   |
| \[                                                                                                                     |   |
| **forks:5**]\(<https://github.com/search?q=forks%3A5&type=Repositories>) は、フォークの数が 5 個のみのリポジトリとマッチします。                 |   |
| <code>forks:><em>n</em></code>                                                                                         |   |
| \[                                                                                                                     |   |
| **forks:>=205**]\(<https://github.com/search?q=forks%3A%3E%3D205&type=Repositories>) は、フォークの数が 205 個以上のリポジトリとマッチします。   |   |
| <code>forks:<<em>n</em></code>                                                                                         |   |
| \[                                                                                                                     |   |
| **forks:<=90**]\(<https://github.com/search?q=forks%3A%3C90&type=Repositories>) は、フォークの数が 90 個未満のリポジトリとマッチします。         |   |
| <code>forks:<em>n..n</em></code>                                                                                       |   |
| \[                                                                                                                     |   |
| **forks:10..20**]\(<https://github.com/search?q=forks%3A10..20&type=Repositories>) は、フォークの数が 10 個から 20 個のリポジトリとマッチします。 |   |

## 星の数で検索

不等号や範囲の修飾子を使って、リポジトリの Star の数でリポジトリを検索できます。 詳細については、「[スターを付けてリポジトリをブックマークする](/ja/enterprise-server@3.22/get-started/exploring-projects-on-github/saving-repositories-with-stars)」および「[検索構文を理解する](/ja/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)」を参照してください。

| 修飾子                                                                                                                        | 例 |
| -------------------------------------------------------------------------------------------------------------------------- | - |
| <code>stars:<em>n</em></code>                                                                                              |   |
| \[                                                                                                                         |   |
| **stars:500**]\(<https://github.com/search?utf8=%E2%9C%93&q=stars%3A500&type=Repositories>) は、星の数がぴったり 500 個のリポジトリとマッチします。 |   |
| <code>                                                                                                                     |   |
| stars:                                                                                                                     |   |

<em>
n..n
</em>
</code>
<code>
size:<
<em>
n
</em>
</code>
| 
[
**stars:10..20 size:<1000**](https://github.com/search?q=stars%3A10..20+size%3A%3C1000&type=Repositories) は、星の数が 10 個から 20 個でサイズが 1000 KB 未満のリポジトリとマッチします。
| <code>
stars:>=
<em>
n
</em>
</code>
`fork:true`
<code>
language:
<em>
LANGUAGE
</em>
</code>
| 
[
**stars:&gt;=500 fork:true language:php**](https://github.com/search?q=stars%3A%3E%3D500+fork%3Atrue+language%3Aphp&type=Repositories) は、PHP で記述された星の数が 500 個以上 (フォークの星を含む) のリポジトリとマッチします。

## リポジトリの作成時期や最終更新時期で検索

作成時期や最終更新時期でリポジトリをフィルタリングできます。 リポジトリの作成時期については、`created` 修飾子を使います。リポジトリの最終更新時期を確認するには、`pushed` 修飾子を使います。
`pushed` 修飾子は、リポジトリのいずれかのブランチに対する最近のコミット順でソートされた、リポジトリのリストを表示します。

両方とも、パラメータとして日付を受け取ります。
日付の書式設定は、[ISO8601](http://en.wikipedia.org/wiki/ISO_8601) 標準の `YYYY-MM-DD` (年-月-日) に従う必要があります。
日付の後にオプションの時刻情報 `THH:MM:SS+00:00` を追加して、時間、分、秒で検索することもできます。 これは、`T` の後に `HH:MM:SS` (時-分-秒)、UTC オフセット (`+00:00`) が続きます。

日付に対して検索を行う場合、結果をさらにフィルタリングするためにより大きい、より小さい、範囲の修飾子を利用できます。 詳しくは、「[検索構文を理解する](/ja/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)」をご覧ください。

| 修飾子                                                                                                                                                                       | 例 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - |
| <code>created:<<em>YYYY-MM-DD</em></code>                                                                                                                                 |   |
| \[                                                                                                                                                                        |   |
| **webos created:<2011-01-01**]\(<https://github.com/search?q=webos+created%3A%3C2011-01-01&type=Repositories>) は、2011 年より前に作成された「webos」という単語を含むリポジトリとマッチします。              |   |
| <code>pushed:><em>YYYY-MM-DD</em></code>                                                                                                                                  |   |
| \[                                                                                                                                                                        |   |
| **css pushed:>2013-02-01**]\(<https://github.com/search?utf8=%E2%9C%93&q=css+pushed%3A%3E2013-02-01&type=Repositories>) は、2013 年 1 月より後にプッシュされた「css」という単語を含むリポジトリとマッチします。 |   |
| <code>                                                                                                                                                                    |   |
| pushed:>=                                                                                                                                                                 |   |

<em>
YYYY-MM-DD
</em>
</code>
`fork:only`
| 
[
**case pushed:&gt;=2013-03-06 fork:only**](https://github.com/search?q=case+pushed%3A%3E%3D2013-03-06+fork%3Aonly&type=Repositories) は、2013 年 3 月 6 日以降にプッシュされ、フォークであり、「case」という単語を含むリポジトリと一致します。

## 言語で検索

リポジトリのコードの言語に基づいてリポジトリを検索できます。

| 修飾子                                                                                                                             | 例 |
| ------------------------------------------------------------------------------------------------------------------------------- | - |
| <code>language:<em>LANGUAGE</em></code>                                                                                         |   |
| \[                                                                                                                              |   |
| \*\*                                                                                                                            |   |
| `rails language:javascript`                                                                                                     |   |
| \*\*                                                                                                                            |   |
| ]\(<https://github.com/search?q=rails+language%3Ajavascript&type=Repositories>) は、JavaScript で記述された「rails」という単語を含むリポジトリとマッチします。 |   |

## トピックで検索

特定の Topics で分類されたすべてのリポジトリを見つけることができます。 詳しくは、「[トピックでリポジトリを分類する](/ja/enterprise-server@3.22/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics)」をご覧ください。

| 修飾子                                                                                                                                      | 例 |
| ---------------------------------------------------------------------------------------------------------------------------------------- | - |
| <code>topic:<em>TOPIC</em></code>                                                                                                        |   |
| \[                                                                                                                                       |   |
| \*\*                                                                                                                                     |   |
| `topic:jekyll`                                                                                                                           |   |
| \*\*                                                                                                                                     |   |
| ]\(<https://github.com/search?utf8=%E2%9C%93&q=topic%3Ajekyll&type=Repositories&ref=searchresults>) は、「Jekyll」というトピックで分類されたリポジトリとマッチします。 |   |

## トピックの数で検索する

より大きい修飾子、より小さい修飾子、範囲の修飾子とともに `topics` 修飾子を使用すると、リポジトリに適用されたトピックの数でリポジトリを検索できます。 詳細については、「[トピックでリポジトリを分類する](/ja/enterprise-server@3.22/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics)」および「[検索構文を理解する](/ja/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)」を参照してください。

| 修飾子                                                                                                                                            | 例 |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | - |
| <code>topics:<em>n</em></code>                                                                                                                 |   |
| \[                                                                                                                                             |   |
| **topics:5**]\(<https://github.com/search?utf8=%E2%9C%93&q=topics%3A5&type=Repositories&ref=searchresults>) は、トピックの数が 5 つのリポジトリとマッチします。        |   |
| <code>topics:><em>n</em></code>                                                                                                                |   |
| \[                                                                                                                                             |   |
| **topics:>3**]\(<https://github.com/search?utf8=%E2%9C%93&q=topics%3A%3E3&type=Repositories&ref=searchresults>) は、トピックの数が 3 つを超えるリポジトリとマッチします。 |   |

## ライセンスで検索

リポジトリのライセンスの種類に基づいてリポジトリを検索できます。 特定のライセンスまたはライセンスファミリーによってリポジトリをフィルタリングするには、ライセンスキーワードを使う必要があります。 詳しくは、「[リポジトリのライセンス](/ja/enterprise-server@3.22/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository)」をご覧ください。

| 修飾子                                                                                                                                                                           | 例 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - |
| <code>license:<em>LICENSE\_KEYWORD</em></code>                                                                                                                                |   |
| \[                                                                                                                                                                            |   |
| **license:apache-2.0**]\(<https://github.com/search?utf8=%E2%9C%93&q=license%3Aapache-2.0&type=Repositories&ref=searchresults>) は、Apache License 2.0 でライセンスされているリポジトリとマッチします。 |   |

## リポジトリの可視性で検索

リポジトリの可視性に基づいて検索を絞り込むことができます。 詳しくは、「[リポジトリについて](/ja/enterprise-server@3.22/repositories/creating-and-managing-repositories/about-repositories#about-repository-visibility)」をご覧ください。

| 修飾子                                                                                                                                          | 例 |
| -------------------------------------------------------------------------------------------------------------------------------------------- | - |
| `is:public`                                                                                                                                  |   |
| \[                                                                                                                                           |   |
| **is:public org:github**]\(<https://github.com/search?q=is%3Apublic+org%3Agithub&type=Repositories>) は、 GitHubが所有するパブリック リポジトリと一致します。        |   |
|                                                                                                                                              |   |
| `is:internal`                                                                                                                                |   |
| \[                                                                                                                                           |   |
| **is:internal test**]\(<https://github.com/search?q=is%3Ainternal+test&type=Repositories>) は、アクセス可能で、"test" という単語が含まれている内部リポジトリと一致します。       |   |
|                                                                                                                                              |   |
| `is:private`                                                                                                                                 |   |
| \[                                                                                                                                           |   |
| **is:private pages**]\(<https://github.com/search?q=is%3Aprivate+pages&type=Repositories>) は、アクセス可能で、"pages" という単語が含まれているプライベート リポジトリと一致します。 |   |

## リポジトリのカスタム プロパティに基づく検索

`props.` 接頭辞修飾子を使用して、リポジトリをカスタム プロパティに基づいてフィルター処理できます。 詳しくは、「[Organization 内リポジトリのカスタム プロパティの管理](/ja/enterprise-server@3.22/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization)」をご覧ください。

これらの修飾子を機能させるには、検索を 1 つの組織に限定する必要があります。 それ以外の場合、`props.` 修飾子は無視されます。

| 修飾子                                                                                                                                                                                                                                | 例 |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - |
| <code>props.<em>PROPERTY</em>:<em>VALUE</em></code>                                                                                                                                                                                |   |
| \[                                                                                                                                                                                                                                 |   |
| **org:github props.environment:production**]\(<https://github.com/search?utf8=%E2%9C%93&q=org%3Agithub+props.environment%3Atesting&type=Repositories>) は、カスタム プロパティ `github` が `environment` に設定されている `production` 組織のリポジトリと一致します。 |   |

## リポジトリがテンプレートかどうかで検索

リポジトリがテンプレートかどうかに基づいてリポジトリを検索できます。 詳しくは、「[テンプレートリポジトリを作成する](/ja/enterprise-server@3.22/repositories/creating-and-managing-repositories/creating-a-template-repository)」をご覧ください。

| 修飾子                                                                                                                                              | 例 |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | - |
| `template:true`                                                                                                                                  |   |
| \[                                                                                                                                               |   |
| **template:true GNOME**]\(<https://github.com/search?utf8=%E2%9C%93&q=template%3Atrue+GNOME&type=>) は、テンプレートであり、"GNOME" という単語を含むリポジトリとマッチします。    |   |
| `template:false`                                                                                                                                 |   |
| \[                                                                                                                                               |   |
| **template:false GNOME**]\(<https://github.com/search?utf8=%E2%9C%93&q=template%3Afalse+GNOME&type=>) は、テンプレートではなく、"GNOME" という単語を含むリポジトリとマッチします。 |   |

## リポジトリがアーカイブされているかどうかで検索

アーカイブされているかどうかでリポジトリを検索できます。 詳しくは、「[リポジトリのアーカイブ](/ja/enterprise-server@3.22/repositories/archiving-a-github-repository/archiving-repositories)」をご覧ください。

| 修飾子                                                                                                                                          | 例 |
| -------------------------------------------------------------------------------------------------------------------------------------------- | - |
| `archived:true`                                                                                                                              |   |
| \[                                                                                                                                           |   |
| **archived:true GNOME**]\(<https://github.com/search?utf8=%E2%9C%93&q=archived%3Atrue+GNOME&type=>) は、アーカイブされ、「GNOME」という単語を含むリポジトリとマッチします。   |   |
| `archived:false`                                                                                                                             |   |
| \[                                                                                                                                           |   |
| **archived:false GNOME**]\(<https://github.com/search?utf8=%E2%9C%93&q=archived%3Afalse+GNOME&type=)は、アーカイブされず、「GNOME」という単語を含むリポジトリとマッチします。> |   |

## 参考資料

* [検索結果をソートする](/ja/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/sorting-search-results)
* [フォーク内を検索する](/ja/enterprise-server@3.22/search-github/searching-on-github/searching-in-forks)