![]() |
![]()
| ![]() |
![]()
NAMEgh-search-commits - Search for commits SYNOPSISgh search commits [<query>] [flags] DESCRIPTIONSearch for commits on GitHub. The command supports constructing queries using the GitHub search syntax, using the parameter and qualifier flags, or a combination of the two. GitHub search syntax is documented at: ⟨https://docs.github.com/search-github/searching-on-github/searching-commits⟩ OPTIONS
JSON FIELDSauthor, commit, committer, id, parents, repository, sha, url EXIT CODES0: Successful execution 1: Error 2: Command canceled 4: Authentication required NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. EXAMPLE# Search commits matching set of keywords "readme" and "typo" $ gh search commits readme typo # Search commits matching phrase "bug fix" $ gh search commits "bug fix" # Search commits committed by user "monalisa" $ gh search commits --committer=monalisa # Search commits authored by users with name "Jane Doe" $ gh search commits --author-name="Jane Doe" # Search commits matching hash "8dd03144ffdc6c0d486d6b705f9c7fba871ee7c3" $ gh search commits --hash=8dd03144ffdc6c0d486d6b705f9c7fba871ee7c3 # Search commits authored before February 1st, 2022 $ gh search commits --author-date="<2022-02-01" SEE ALSOgh-search(1)
|