GH-SEARCH-COMMITS(1) | GitHub CLI manual | GH-SEARCH-COMMITS(1) |
gh-search-commits - Search for commits
gh search commits [<query>] [flags]
Search 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⟩
# 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"
gh-search(1)
Nov 2024 |