Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-search: add page
  • Loading branch information
harryfrzz committed Oct 2, 2025
commit 1db51fd5822582dd30eedbe0a29499ae895329aa
36 changes: 36 additions & 0 deletions pages/common/gh-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# gh search

> Search across all of GitHub.
> More information: <https://cli.github.com/manual/gh_search>.

- Search for code containing specific keywords:

`gh search code {{keyword1}} {{keyword2}}`

- Search for issues with a specific phrase:

`gh search issues "{{search_phrase}}"`

- Search commits by a specific author:

`gh search commits --author={{username}}`

- Search pull requests assigned to yourself that are still open:

`gh search prs --assignee=@me --state=open`

- Search repositories in an organization by topic:

`gh search repos --owner={{org_name}} --topic={{topic_name}}`

- Exclude search results with a specific qualifier (Unix-like systems):

`gh search issues -- "{{search_query}} -label:{{label_name}}"`

- Exclude search results with a specific qualifier (PowerShell):

`gh --% search issues -- "{{search_query}} -label:{{label_name}}"`

- Open the search query in the web browser:

`gh search {{subcommand}} {{query}} --web`