# gist を検索する

GitHub 上の gist を検索し、検索修飾子を使用して検索結果を絞ることができます。

## gist を検索する

お使いの GitHub Enterprise Server インスタンス 全域で gist をグローバルに検索できます。

| 修飾子 | 例 |
| :- | :- |
| <code>><em>n</em></code> | 
[
**cat stars:>100**](https://gist.github.com/search?q=cat+stars%3A%3E100) は 100 個を超える星を持つ "cat" という単語を含む gist を検索します。|
| <code>user:<em>USERNAME</em></code> | 
[
**user:octocat**](https://gist.github.com/search?q=user%3Aoctocat) は @octocat によって作成されたすべての gist を取得します。 |
| `anon:true` | 
[
**cat anon:true**](https://gist.github.com/search?q=cat+anon%3Atrue&ref=searchresults) には、cat に関連する gist を検索する際に、匿名の gist を含む機能があります。 |
| `NOT` | 
[
**NOT cat**](https://gist.github.com/search?q=NOT+cat&ref=searchresults) は、cat を含むすべての結果を除外します。 |
| `fork:only` | 
[
**cat fork:only**](https://gist.github.com/search?q=cat+fork%3Aonly&ref=searchresults) は、"cat" という単語を含むすべてのフォーク リポジトリと一致します。 |

## コンテンツのフィルター処理

gist 検索では、既定でファイルの内容を検索します。 コンテンツに基づいて結果をフィルター処理することもできます。

| 修飾子 | 例 |
| :- | :- |
| <code>filename:<em>FILENAME</em></code> | 
[
**filename:.bashrc**](https://gist.github.com/search?q=filename%3A.bashrc&ref=searchresults) は、".bashrc" ファイルを持つすべての gist を検索します。 |
| <code>language:<em>LANGUAGE</em></code> | 
[
**cat language:html**](https://gist.github.com/search?q=cat+language%3Ahtml&ref=searchresults) は、HTML ファイルを持ち、単語 "cat" を含むすべての gist を検索します。 |
| <code>extension:<em>EXTENSION</em></code> | 
[
**join extension:coffee**](https://gist.github.com/search?q=join+extension%3Acoffee&ref=searchresults) は、コーヒー拡張機能を持つ gist 内の "join" のすべてのインスタンスを検索します。 |
| <code>size:><em>n</em></code> | 
[
**system size:>1000**](https://gist.github.com/search?q=system+size%3A%3E1000&ref=searchresults) は、1 MB を超えるファイルを含む gist 内の "system" のすべてのインスタンスを検索します。 |