You can search for commits globally across all of GitHub, or search for commits within a particular repository or organization. For more information, see "About searching on GitHub."
When you search for commits, only the default branch of a repository is searched.
- For a list of search syntaxes that you can add to any search qualifier to further improve your results, see "Understanding the search syntax".
- Use quotations around multi-word search terms. For example, if you want to search for issues with the label "In progress," you'd search for
label:"in progress". Search is not case sensitive.
You can find commits that contain particular words in the message. For example, fix typo matches commits containing the words "fix" and "typo."
You can find commits by a particular user with the
|author:defunkt matches commits authored by @defunkt.|
|committer:defunkt matches commits committed by @defunkt.|
committer-name qualifiers match commits by the name of the author or committer.
|author-name:wanstrath matches commits with "wanstrath" in the author name.|
|committer-name:wanstrath matches commits with "wanstrath" in the committer name.|
committer-email qualifiers match commits by the author's or committer's full email address.
|author-email:email@example.com matches commits authored by firstname.lastname@example.org.|
|committer-email:email@example.com matches commits committed by firstname.lastname@example.org.|
committer-date qualifiers to match commits authored or committed within the specified date range.
Dates support greater than, less than, and range qualifiers.
|author-date:<2016-01-01 matches commits authored before 2016-01-01.|
|committer-date:>2016-01-01 matches commits committed after 2016-01-01.|
merge qualifier filters merge commits.
|merge:true matches merge commits.|
|merge:false matches non-merge commits.|
hash qualifier matches commits with the specified SHA-1 hash.
|hash:124a9a0ee1d8f1e15e833aff432fbb3b02632105 matches commits with the hash |
parent qualifier matches commits whose parent has the specified SHA-1 hash.
|parent:124a9a0ee1d8f1e15e833aff432fbb3b02632105 matches children of commits with the hash |
tree qualifier matches commits with the specified SHA-1 git tree hash.
|tree:99ca967 matches commits that refer to the tree hash |
To search commits in all repositories owned by a certain user or organization, use the
org qualifier. To search commits in a specific repository, use the
|gibberish user:defunkt matches commit messages with the word "gibberish" in repositories owned by @defunkt.|
|test org:github matches commit messages with the word "test" in repositories owned by @github.|
|language repo:defunkt/gibberish matches commit messages with the word "language" in @defunkt's "gibberish" repository.|
is qualifier matches commits from repositories with the specified visibility. For more information, see "About repository visibility.
|is:public matches commits to public repositories.|
|is:internal matches commits to internal repositories.|
|is:private matches commits to private repositories.|