# 커밋 검색

GitHub에서 커밋을 검색하고 이러한 커밋 검색 한정자를 임의로 조합하여 결과의 범위를 좁힐 수 있습니다.

모든 GitHub에서 전역적으로 커밋을 검색하거나 특정 리포지토리 또는 조직 내에서 커밋을 검색할 수 있습니다. 자세한 내용은 [GitHub 검색 정보](/ko/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/about-searching-on-github)을(를) 참조하세요.

커밋을 검색하는 경우 리포지토리의 [기본 분기](/ko/enterprise-server@3.22/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)만 검색됩니다.

> \[!TIP]
>
> * 이 문서에는 GitHub.com 웹 사이트의 예제 검색 링크가 포함되어 있지만 모든 GitHub 플랫폼에서 동일한 검색 필터를 사용할 수 있습니다. 연결된 예제 검색에서 `github.com`을 GitHub 플랫폼을 위한 호스트 이름으로 바꿉니다.
> * 결과를 더 개선하기 위해 검색 한정자에 추가할 수 있는 검색 구문 목록은 [검색 구문 이해](/ko/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)을(를) 참조하세요.
> * 여러 단어로 된 검색어를 따옴표로 묶으세요. 예를 들어 “진행 중”이라는 레이블이 있는 문제를 검색하려면 `label:"in progress"`를 검색합니다. 검색은 대/소문자를 구분하지 않습니다.

## 커밋 메시지 내 검색

메시지 내에 특정 단어가 포함된 커밋을 찾을 수 있습니다. 예를 들어 [**fix typo**](https://github.com/search?q=fix+typo\&type=Commits)는 “fix”와 “typo”라는 단어가 포함된 커밋을 찾습니다.

## 작성자 또는 커밋자로 검색

`author` 또는 `committer` 한정자를 사용하여 특정 사용자로 커밋을 검색할 수 있습니다.

| 한정자                                                                                                              | 예시 |
| ---------------------------------------------------------------------------------------------------------------- | -- |
| <code>author:<em>USERNAME</em></code>                                                                            |    |
| \[                                                                                                               |    |
| **author:defunkt**]\(<https://github.com/search?q=author%3Adefunkt&type=Commits)는> @defunkt가 작성한 커밋을 찾습니다.       |    |
| <code>committer:<em>USERNAME</em></code>                                                                         |    |
| \[                                                                                                               |    |
| **committer:defunkt**]\(<https://github.com/search?q=committer%3Adefunkt&type=Commits)는> @defunkt가 커밋한 커밋을 찾습니다. |    |

`author-name` 및 `committer-name` 한정자는 작성자 또는 커밋자의 이름으로 커밋을 찾습니다.

| 한정자                                                                                                                                      | 예시 |
| ---------------------------------------------------------------------------------------------------------------------------------------- | -- |
| <code>author-name:<em>NAME</em></code>                                                                                                   |    |
| \[                                                                                                                                       |    |
| **author-name:wanstrath**]\(<https://github.com/search?q=author-name%3Awanstrath&type=Commits)는> 작성자 이름에 “wanstrath”가 있는 커밋을 찾습니다.       |    |
| <code>committer-name:<em>NAME</em></code>                                                                                                |    |
| \[                                                                                                                                       |    |
| **committer-name:wanstrath**]\(<https://github.com/search?q=committer-name%3Awanstrath&type=Commits)는> 커밋자 이름에 “wanstrath”가 있는 커밋을 찾습니다. |    |

`author-email` 및 `committer-email` 한정자는 작성자 또는 커밋자의 전체 메일 주소로 커밋을 찾습니다.

| 한정자                                                                                                                    | 예시 |
| ---------------------------------------------------------------------------------------------------------------------- | -- |
| <code>author-email:<em>EMAIL</em></code>                                                                               |    |
| \[                                                                                                                     |    |
| \*\*                                                                                                                   |    |
| author-email:<chris@github.com>                                                                                        |    |
| \*\*                                                                                                                   |    |
| ]\(<https://github.com/search?q=author-email%3Achris%40github.com&type=Commits)은> <chris@github.com>으로 작성한 커밋을 찾습니다.   |    |
| <code>committer-email:<em>EMAIL</em></code>                                                                            |    |
| \[                                                                                                                     |    |
| \*\*                                                                                                                   |    |
| committer-email:<chris@github.com>                                                                                     |    |
| \*\*                                                                                                                   |    |
| ]\(<https://github.com/search?q=committer-email%3Achris%40github.com&type=Commits)은> <chris@github.com>이 커밋한 커밋을 찾습니다. |    |

## 작성 날짜 또는 커밋 날짜로 검색

`author-date` 및 `committer-date` 한정자를 사용하여 지정된 날짜 범위 내에 작성되거나 커밋된 커밋을 찾을 수 있습니다.

날짜를 검색할 때 보다 큼, 보다 작음, 범위 한정자를 사용하여 결과를 추가로 필터링할 수 있습니다. 자세한 내용은 [검색 구문 이해](/ko/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)을(를) 참조하세요.

| 한정자                                                                                                                                                                                                                 | 예시 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -- |
| <code>author-date:<em>YYYY-MM-DD</em></code>                                                                                                                                                                        |    |
| \[                                                                                                                                                                                                                  |    |
| **author-date:<2016-01-01**]\(<https://github.com/search?q=author-date%3A><2016-01-01\&type=Commits)은 2016년 1월 1일 전에 작성된 커밋을 찾습니다.                                                                                  |    |
| <code>committer-date:<em>YYYY-MM-DD</em></code>                                                                                                                                                                     |    |
| \[                                                                                                                                                                                                                  |    |
| **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년 1월 1일 후에 커밋된 커밋을 찾습니다. |    |

## 병합 커밋 필터링

`merge` 한정자는 병합 커밋을 필터링합니다.

| 한정자                                                                                        | 예시 |
| ------------------------------------------------------------------------------------------ | -- |
| `merge:true`                                                                               |    |
| \[                                                                                         |    |
| **merge:true**]\(<https://github.com/search?q=merge%3Atrue&type=Commits)는> 병합 커밋과 일치합니다.   |    |
| `merge:false`                                                                              |    |
| \[                                                                                         |    |
| **merge:false**]\(<https://github.com/search?q=merge%3Afalse&type=Commits)는> 비병합 커밋을 찾습니다. |    |

## 해시로 검색

`hash` 한정자는 지정된 SHA-1 해시가 있는 커밋을 찾습니다.

| 한정자                                                                                                                                                                                                                           | 예시 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -- |
| <code>hash:<em>HASH</em></code>                                                                                                                                                                                               |    |
| \[                                                                                                                                                                                                                            |    |
| **hash:124a9a0ee1d8f1e15e833aff432fbb3b02632105**]\(<https://github.com/github/gitignore/search?q=hash%3A124a9a0ee1d8f1e15e833aff432fbb3b02632105&type=Commits)는> `124a9a0ee1d8f1e15e833aff432fbb3b02632105` 해시가 있는 커밋을 찾습니다. |    |

## 부모로 검색

`parent` 한정자는 부모에 지정된 SHA-1 해시가 있는 커밋을 찾습니다.

| 한정자                               | 예시                                                                                                                                                                                                                                                               |
| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <code>parent:<em>HASH</em></code> | [              **상위:124a9a0ee1d8f1e15e833aff432fbb3b02632105**](https://github.com/github/gitignore/search?q=parent%3A124a9a0ee1d8f1e15e833aff432fbb3b02632105\&type=Commits\&utf8=%E2%9C%93)는 해시가 `124a9a0ee1d8f1e15e833aff432fbb3b02632105`인 커밋의 하위 항목과 일치합니다. |

## 트리로 검색

`tree` 한정자는 지정된 SHA-1 git 트리 해시가 있는 커밋을 찾습니다.

| 한정자                                                                                                                              | 예시 |
| -------------------------------------------------------------------------------------------------------------------------------- | -- |
| <code>tree:<em>HASH</em></code>                                                                                                  |    |
| \[                                                                                                                               |    |
| **tree:99ca967**]\(<https://github.com/github/gitignore/search?q=tree%3A99ca967&type=Commits)은> `99ca967` 트리 해시를 참조하는 커밋과 일치합니다. |    |

## 사용자 또는 조직의 리포지토리 내에서 검색

특정 사용자 또는 조직이 소유한 모든 리포지토리에서 커밋을 검색하려면 `user` 또는 `org` 한정자를 사용합니다. 특정 리포지토리에서 커밋을 검색하려면 `repo` 한정자를 사용합니다.

| 한정자                                                                                                                                                                                                   | 예시 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -- |
| <code>user:<em>USERNAME</em></code>                                                                                                                                                                   |    |
| \[                                                                                                                                                                                                    |    |
| **gibberish user:defunkt**]\(<https://github.com/search?q=gibberish+user%3Adefunkt&type=Commits&utf8=%E2%9C%93)는> @defunkt가 소유한 리포지토리에서 “gibberish”라는 단어가 있는 커밋 메시지를 찾습니다.                            |    |
| <code>org:<em>ORGNAME</em></code>                                                                                                                                                                     |    |
| \[                                                                                                                                                                                                    |    |
| **test org:github**]\(<https://github.com/search?utf8=%E2%9C%93&q=test+org%3Agithub&type=Commits)는> @github가 소유한 리포지토리에서 “test”라는 단어가 있는 커밋 메시지를 찾습니다.                                                |    |
| <code>repo:<em>USERNAME/REPO</em></code>                                                                                                                                                              |    |
| \[                                                                                                                                                                                                    |    |
| **language repo:defunkt/gibberish**]\(<https://github.com/search?utf8=%E2%9C%93&q=language+repo%3Adefunkt%2Fgibberish&type=Commits)는> @defunkt의 “gibberish” 리포지토리에서 “language”라는 단어가 있는 커밋 메시지를 찾습니다. |    |

## 리포지토리 표시 여부별로 필터링

`is` 한정자는 지정된 가시성을 갖춘 리포지토리의 커밋과 일치합니다. 자세한 내용은 [리포지토리 정보](/ko/enterprise-server@3.22/repositories/creating-and-managing-repositories/about-repositories#about-repository-visibility)을(를) 참조하세요.

| 한정자                                                                                                  | 예시 |
| ---------------------------------------------------------------------------------------------------- | -- |
| `is:public`                                                                                          |    |
| \[                                                                                                   |    |
| **is:public**]\(<https://github.com/search?q=is%3Apublic&type=Commits)은> 퍼블릭 리포지토리에 대한 커밋을 찾습니다.     |    |
|                                                                                                      |    |
| `is:internal`                                                                                        |    |
| \[                                                                                                   |    |
| **is:internal**]\(<https://github.com/search?q=is%3Ainternal&type=Commits)은> 내부 리포지토리에 대한 커밋과 일치합니다. |    |
|                                                                                                      |    |
| `is:private`                                                                                         |    |
| \[                                                                                                   |    |
| **is:private**]\(<https://github.com/search?q=is%3Aprivate&type=Commits)은> 프라이빗 리포지토리에 대한 커밋과 일치합니다. |    |

## 추가 참고 자료

* [검색 결과 정렬](/ko/enterprise-server@3.22/search-github/getting-started-with-searching-on-github/sorting-search-results)