1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/content/search-github/searching-on-github/searching-gists.md
2025-01-22 14:28:42 +00:00

2.1 KiB

title, intro, permissions, versions
title intro permissions versions
Searching gists You can search for gists on {% data variables.product.github %} and narrow the results using search qualifiers. {% data reusables.enterprise-accounts.emu-permission-gist %}
fpt ghes ghec
* * *

Search gists

You can search for gists globally across {% data variables.location.product_location %}.

Qualifier Example
>n cat stars:>100 finds gists with the word "cat" that have more than 100 stars.
user:USERNAME user:octocat gets all gists created by @octocat.
anon:true cat anon:true includes anonymous gists in your search for cat-related gists.
NOT NOT cat excludes all results containing cat.
fork:only cat fork:only matches all fork repositories containing the word "cat."

Filter content

Gist search looks through the file contents by default. You can also filter the results based on the content.

Qualifier Example
filename:FILENAME filename:.bashrc finds all gists with a ".bashrc" file.
language:LANGUAGE cat language:html finds all gists with the word "cat" with a HTML file.
extension:EXTENSION join extension:coffee finds all instances of "join" in gists with a coffee extension.
size:>n system size:>1000 finds all instances of "system" in gists containing a file larger than 1 MB.