GitHub Search Operators

Search operators to find repositories, code, issues, and users on GitHub.

46 operators across 7 categories

Tips & Notes

  • Code search requires you to be logged in and has different syntax than repo/issue search.
  • Use the type selector (Repositories, Code, Issues, etc.) to narrow results.
  • Combine multiple qualifiers with spaces (implicit AND).
  • Date ranges use ISO 8601 format: YYYY-MM-DD.
  • Some operators only work for certain search types (repos vs issues vs code).

Repository Search

OperatorDescriptionExampleCopy
user:Find repos by a specific user or orguser:facebook react
org:Find repos in a specific organizationorg:microsoft typescript
repo:Search within a specific repositoryrepo:vercel/next.js router
in:nameSearch in repository namesreact in:name
in:descriptionSearch in repository descriptionsmachine learning in:description
in:readmeSearch in README filesgetting started in:readme
in:topicsSearch in repository topicsin:topics javascript

Repository Metrics

OperatorDescriptionExampleCopy
stars:Filter by number of starsstars:>10000 language:python
stars:n..mFilter by star rangestars:100..1000 react
forks:Filter by number of forksforks:>500
size:Filter by repo size in KBsize:<1000
followers:Filter by number of followersfollowers:>1000

Language & Topics

OperatorDescriptionExampleCopy
language:Filter by programming languagelanguage:typescript state management
topic:Filter by topictopic:react topic:hooks
license:Filter by license typelicense:mit language:go

Date Filters

OperatorDescriptionExampleCopy
created:Filter by creation datecreated:>2024-01-01
pushed:Filter by last push datepushed:>2024-06-01
created:YYYY-MM-DD..YYYY-MM-DDFilter by date rangecreated:2024-01-01..2024-06-30

Issues & Pull Requests

OperatorDescriptionExampleCopy
is:issueFind only issuesis:issue is:open label:bug
is:prFind only pull requestsis:pr is:merged author:octocat
is:openFind open issues/PRsis:open is:issue repo:facebook/react
is:closedFind closed issues/PRsis:closed is:pr
is:mergedFind merged pull requestsis:merged author:username
label:Filter by labellabel:bug label:help-wanted
author:Filter by authorauthor:octocat is:issue
assignee:Filter by assigneeassignee:username is:open
mentions:Filter by @mentioned usermentions:octocat
commenter:Filter by commentercommenter:octocat is:issue
involves:Filter by involved user (author, assignee, commenter, or mentioned)involves:octocat is:open
milestone:Filter by milestonemilestone:"v2.0" is:open
no:labelFind issues without labelsno:label is:open is:issue
no:milestoneFind issues without milestonesno:milestone is:open
no:assigneeFind unassigned issuesno:assignee is:open label:bug

Code Search

OperatorDescriptionExampleCopy
path:Search in files at a specific pathpath:src/components Button
path:*.extSearch in files with specific extensionpath:*.tsx useState
filename:Search for files by namefilename:package.json
extension:Filter by file extensionextension:py import pandas
symbol:Search for symbol definitionssymbol:handleClick language:typescript

Repository Status

OperatorDescriptionExampleCopy
is:publicFind public repositoriesis:public user:username
is:privateFind your private repositoriesis:private
archived:trueFind archived repositoriesarchived:true user:octocat
archived:falseExclude archived repositoriesarchived:false stars:>1000
mirror:trueFind mirror repositoriesmirror:true
fork:trueInclude forked repositoriesfork:true language:rust
fork:onlyShow only forked repositoriesfork:only user:username
template:trueFind template repositoriestemplate:true topic:nextjs