GH-SEARCH-COMMITS(1) GitHub CLI manual GH-SEARCH-COMMITS(1) (NAME) gh-search-commits - (SYNOPSIS) gh search commits [] [flags] (DESCRIPTION) (GitHub). (qualifier) . : gh search --help . (OPTIONS) --author --author-date --author-email --author-name --committer (committer) --committer-date --committer-email --committer-name --hash -q, --jq JSON jq --json JSON -L, --limit (default 30) --merge (merge) --order (default "desc") '--sort' : {asc|desc} --owner --parent (parent) -R, --repo OWNER/REPO --sort (default "best-match") : {author-date|committer-date} -t, --template JSON Go "gh help formatting" --tree (tree) --visibility : {public|private|internal} -w, --web JSON (JSON FIELDS) author, commit, committer, id, parents, repository, sha, url (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) # "readme" "typo" $ gh search commits readme typo # "bug fix" $ gh search commits "bug fix" # $ gh search commits fix author:monalisa merge:false # "monalisa" $ gh search commits --committer=monalisa # "Jane Doe" $ gh search commits --author-name="Jane Doe" # "8dd03144ffdc6c0d486d6b705f9c7fba871ee7c3" $ gh search commits --hash=8dd03144ffdc6c0d486d6b705f9c7fba871ee7c3 # $ gh search commits --author-date="<2022-02-01" (SEE ALSO) gh-search(1) Sep 2026 GH-SEARCH-COMMITS(1)