When searching GitHub, you can construct queries that match specific numbers and words.
Query for values greater or less than another valueYou can use >
, >=
, <
, and <=
to search for values that are greater than, greater than or equal to, less than, and less than or equal to another value.
>n
cats stars:>1000 matches repositories with the word "cats" that have more than 1000 stars. >=n
cats topics:>=5 matches repositories with the word "cats" that have 5 or more topics. <n
cats size:<10000 matches code with the word "cats" in files that are smaller than 10 KB. <=n
cats stars:<=50 matches repositories with the word "cats" that have 50 or fewer stars.
You can also use range queries to search for values that are greater than or equal to, or less than or equal to, another value.
Query Examplen..*
cats stars:10..* is equivalent to stars:>=10
and matches repositories with the word "cats" that have 10 or more stars. *..n
cats stars:*..10 is equivalent to stars:<=10
and matches repositories with the word "cats" that have 10 or fewer stars. Query for values between a range
You can use the range syntax n..n
to search for values within a range, where the first number N is the lowest value and the second is the highest value.
n..n
cats stars:10..50 matches repositories with the word "cats" that have between 10 and 50 stars. Query for dates
You can search for dates that are earlier or later than another date, or that fall within a range of dates, by using >
, >=
, <
, <=
, and range queries. Date formatting must follow the ISO8601 standard, which is YYYY-MM-DD
(year-month-day).
You can also add optional time information THH:MM:SS+00:00
after the date, to search by the hour, minute, and second. That's T
, followed by HH:MM:SS
(hour-minutes-seconds), and a UTC offset (+00:00
).
You can narrow down search results by excluding one or more subsets. To exclude all results that are matched by a qualifier, prefix the search qualifier with a hyphen (-
).
You can exclude results containing a certain word, using the NOT
syntax. The NOT
operator can only be used for string keywords. It does not work for numerals or dates.
NOT
hello NOT world matches repositories that have the word "hello" but not the word "world." Use quotation marks for queries with whitespace
If your search query contains whitespace, you will need to surround it with quotation marks. For example:
If your search query contains a qualifier that requires a username, such as user
, actor
, or assignee
, you can use any valid username to specify a specific person, @me
to specify the current user, or @copilot
to specify Copilot.
You can only use @me
or @copilot
with a qualifier, and not as a search term, such as @me main.workflow
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4