{"meta":{"title":"コミットを検索する","intro":"GitHubでコミットを検索し、これらのコミット検索修飾子を任意の組み合わせで使用して結果を絞り込むことができます。","product":"GitHubで検索する","breadcrumbs":[{"href":"/ja/search-github","title":"GitHubで検索する"},{"href":"/ja/search-github/searching-on-github","title":"GitHubでの検索"},{"href":"/ja/search-github/searching-on-github/searching-commits","title":"コミットを検索する"}],"documentType":"article"},"body":"# コミットを検索する\n\nGitHubでコミットを検索し、これらのコミット検索修飾子を任意の組み合わせで使用して結果を絞り込むことができます。\n\nすべての GitHub全体でコミットをグローバルに検索したり、特定のリポジトリまたは組織内のコミットを検索したりできます。 詳しくは、「[GitHubでの検索について](/ja/search-github/getting-started-with-searching-on-github/about-searching-on-github)」をご覧ください。\n\nコミットを検索すると、リポジトリの[既定のブランチ](/ja/pull-requests/reference/branches)のみが検索されます。\n\n> \\[!TIP]\n>\n> * この記事には、GitHub.com の Web サイトでの検索例へのリンクが含まれていますが、同じ検索フィルターはあらゆる GitHub プラットフォームで使えます。 リンクされている検索例で、`github.com` を GitHub プラットフォームのホスト名に置き換えてください。\n> * 検索結果をさらに改善するために検索修飾子を追加できる検索構文の一覧については、「[検索構文を理解する](/ja/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)」を参照してください。\n> * 複数単語の検索用語は引用符で囲みます。 たとえば \"In progress\" というラベルの問題を検索したい場合は、`label:\"in progress\"` と検索します。 検索では、大文字と小文字は区別されません。\n\n## コミットメッセージ内を検索\n\nメッセージに特定の単語を含むコミットを検索できます。 たとえば、[**fix typo**](https://github.com/search?q=fix+typo\\&type=Commits) は、「fix」と「typo」という単語を含むコミットにマッチします。\n\n## 著者またはコミッターで検索\n\n`author` や `committer` の修飾子を使用すると、特定のユーザーによるコミットを発見できます。\n\n| 修飾子                                                                                                                    | 例 |\n| ---------------------------------------------------------------------------------------------------------------------- | - |\n| <code>author:<em>USERNAME</em></code>                                                                                  |   |\n| \\[                                                                                                                     |   |\n| **author:defunkt**]\\(<https://github.com/search?q=author%3Adefunkt&type=Commits>) は、@defunkt が作成したコミットとマッチします。         |   |\n| <code>committer:<em>USERNAME</em></code>                                                                               |   |\n| \\[                                                                                                                     |   |\n| **committer:defunkt**]\\(<https://github.com/search?q=committer%3Adefunkt&type=Commits>) は、@defunkt がコミットしたコミットとマッチします。 |   |\n\n`author-name` と `committer-name` の修飾子は、作成者またはコミッターの名前によるコミットとマッチします。\n\n| 修飾子                                                                                                                                       | 例 |\n| ----------------------------------------------------------------------------------------------------------------------------------------- | - |\n| <code>author-name:<em>NAME</em></code>                                                                                                    |   |\n| \\[                                                                                                                                        |   |\n| **author-name:wanstrath**]\\(<https://github.com/search?q=author-name%3Awanstrath&type=Commits>) は、作成者名に「wanstrath」を含むコミットとマッチします。         |   |\n| <code>committer-name:<em>NAME</em></code>                                                                                                 |   |\n| \\[                                                                                                                                        |   |\n| **committer-name:wanstrath**]\\(<https://github.com/search?q=committer-name%3Awanstrath&type=Commits>) は、コミッター名に「wanstrath」を含むコミットとマッチします。 |   |\n\n`author-email` と `committer-email` の修飾子は、作成者またはコミッターの完全なメール アドレスによるコミットとマッチします。\n\n| 修飾子                                                                                                                          | 例 |\n| ---------------------------------------------------------------------------------------------------------------------------- | - |\n| <code>author-email:<em>EMAIL</em></code>                                                                                     |   |\n| \\[                                                                                                                           |   |\n| \\*\\*                                                                                                                         |   |\n| author-email:<chris@github.com>                                                                                              |   |\n| \\*\\*                                                                                                                         |   |\n| ]\\(<https://github.com/search?q=author-email%3Achris%40github.com&type=Commits>) は <chris@github.com> が作成したコミットとマッチします。      |   |\n| <code>committer-email:<em>EMAIL</em></code>                                                                                  |   |\n| \\[                                                                                                                           |   |\n| \\*\\*                                                                                                                         |   |\n| committer-email:<chris@github.com>                                                                                           |   |\n| \\*\\*                                                                                                                         |   |\n| ]\\(<https://github.com/search?q=committer-email%3Achris%40github.com&type=Commits>) は <chris@github.com> がコミットしたコミットとマッチします。 |   |\n\n## 作成日またはコミット日で検索\n\n`author-date` と `committer-date` の修飾子を使用すると、指定した日付範囲内で作成またはコミットされたコミットとマッチできます。\n\n日付に対して検索を行う場合、結果をさらにフィルタリングするためにより大きい、より小さい、範囲の修飾子を利用できます。 詳しくは、「[検索構文を理解する](/ja/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)」をご覧ください。\n\n| 修飾子                                                                                                                                                                                                                     | 例 |\n| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - |\n| <code>author-date:<em>YYYY-MM-DD</em></code>                                                                                                                                                                            |   |\n| \\[                                                                                                                                                                                                                      |   |\n| **author-date:<2016-01-01**]\\(<https://github.com/search?q=author-date%3A><2016-01-01\\&type=Commits) は、2016-01-01 より前に作成されたコミットとマッチします。                                                                                 |   |\n| <code>committer-date:<em>YYYY-MM-DD</em></code>                                                                                                                                                                         |   |\n| \\[                                                                                                                                                                                                                      |   |\n| **committer-date:>2016-01-01**]\\([https://github.com/search?q=committer-date%3A>2016-01-01\\&type=Commits](https://github.com/search?q=committer-date%3A>2016-01-01\\&type=Commits)) は、2016-01-01 より後にコミットされたコミットとマッチします。 |   |\n\n## マージコミットをフィルタリングする\n\n`merge` 修飾子はマージ コミットをフィルタリングします。\n\n| 修飾子                                                                                             | 例 |\n| ----------------------------------------------------------------------------------------------- | - |\n| `merge:true`                                                                                    |   |\n| \\[                                                                                              |   |\n| **merge:true**]\\(<https://github.com/search?q=merge%3Atrue&type=Commits>) はマージ コミットとマッチします。     |   |\n| `merge:false`                                                                                   |   |\n| \\[                                                                                              |   |\n| **merge:false**]\\(<https://github.com/search?q=merge%3Afalse&type=Commits>) はマージ以外のコミットとマッチします。 |   |\n\n## ハッシュで検索\n\n`hash` 修飾子は、指定された SHA-1 ハッシュを含むコミットとマッチします。\n\n| 修飾子                                                                                                                                                                                                                                | 例 |\n| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - |\n| <code>hash:<em>HASH</em></code>                                                                                                                                                                                                    |   |\n| \\[                                                                                                                                                                                                                                 |   |\n| **hash:124a9a0ee1d8f1e15e833aff432fbb3b02632105**]\\(<https://github.com/github/gitignore/search?q=hash%3A124a9a0ee1d8f1e15e833aff432fbb3b02632105&type=Commits>) は、ハッシュ `124a9a0ee1d8f1e15e833aff432fbb3b02632105` を含むコミットとマッチします。 |   |\n\n## 親で検索\n\n`parent` 修飾子は、親が指定された SHA-1 ハッシュを持つコミットとマッチします。\n\n| 修飾子                                                                                                                                                                                                                                                     | 例 |\n| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - |\n| <code>parent:<em>HASH</em></code>                                                                                                                                                                                                                       |   |\n| \\[                                                                                                                                                                                                                                                      |   |\n| **parent:124a9a0ee1d8f1e15e833aff432fbb3b02632105**]\\(<https://github.com/github/gitignore/search?q=parent%3A124a9a0ee1d8f1e15e833aff432fbb3b02632105&type=Commits&utf8=%E2%9C%93>) は、ハッシュ `124a9a0ee1d8f1e15e833aff432fbb3b02632105` を持つコミットの子孫と一致します。 |   |\n\n## ツリーで検索\n\n`tree` 修飾子は、指定された SHA-1 Git ツリー ハッシュを含むコミットとマッチします。\n\n| 修飾子                                                                                                                                   | 例 |\n| ------------------------------------------------------------------------------------------------------------------------------------- | - |\n| <code>tree:<em>HASH</em></code>                                                                                                       |   |\n| \\[                                                                                                                                    |   |\n| **tree:99ca967**]\\(<https://github.com/github/gitignore/search?q=tree%3A99ca967&type=Commits>) は、ツリー ハッシュ `99ca967` を参照するコミットとマッチします。 |   |\n\n## ユーザまたは Organization のリポジトリ内の検索\n\n特定のユーザーまたは組織が所有するすべてのリポジトリでコミットを検索するには、`user` または `org` 修飾子を使用します。 特定のリポジトリ内のコミットを検索するには、`repo` 修飾子を使用します。\n\n| 修飾子                                                                                                                                                                                                     | 例 |\n| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - |\n| <code>user:<em>USERNAME</em></code>                                                                                                                                                                     |   |\n| \\[                                                                                                                                                                                                      |   |\n| **gibberish user:defunkt**]\\(<https://github.com/search?q=gibberish+user%3Adefunkt&type=Commits&utf8=%E2%9C%93>) は、@defunkt が所有するリポジトリ内で「gibberish」という単語を含むコミット メッセージとマッチします。                           |   |\n| <code>org:<em>ORGNAME</em></code>                                                                                                                                                                       |   |\n| \\[                                                                                                                                                                                                      |   |\n| **test org:github**]\\(<https://github.com/search?utf8=%E2%9C%93&q=test+org%3Agithub&type=Commits>) は、@github が所有するリポジトリ内で「test」という単語を含むコミット メッセージとマッチします。                                               |   |\n| <code>repo:<em>USERNAME/REPO</em></code>                                                                                                                                                                |   |\n| \\[                                                                                                                                                                                                      |   |\n| **language repo:defunkt/gibberish**]\\(<https://github.com/search?utf8=%E2%9C%93&q=language+repo%3Adefunkt%2Fgibberish&type=Commits>) は、@defunkt の「gibberish」リポジトリ内で「language」という単語を含むコミット メッセージとマッチします。 |   |\n\n## リポジトリの可視性によるフィルタ\n\n`is` 修飾子は、指定した可視性を持つリポジトリからのコミットとマッチします。 詳しくは、「[リポジトリについて](/ja/repositories/creating-and-managing-repositories/about-repositories#about-repository-visibility)」をご覧ください。\n\n| 修飾子                                                                                                  | 例 |\n| ---------------------------------------------------------------------------------------------------- | - |\n| `is:public`                                                                                          |   |\n| \\[                                                                                                   |   |\n| **is:public**]\\(<https://github.com/search?q=is%3Apublic&type=Commits>) はパブリック リポジトリへのコミットと一致します。    |   |\n|                                                                                                      |   |\n| `is:private`                                                                                         |   |\n| \\[                                                                                                   |   |\n| **is:private**]\\(<https://github.com/search?q=is%3Aprivate&type=Commits>) はプライベート リポジトリへのコミットと一致します。 |   |\n\n## 参考資料\n\n* [検索結果をソートする](/ja/search-github/getting-started-with-searching-on-github/sorting-search-results)"}