Skip to main content

Searching gists

You can search for gists on GitHub Enterprise Cloud and narrow the results using search qualifiers.

Who can use this feature?

Members of an enterprise with managed users cannot create gists and have read-only access to gists.

Search gists

You can search for gists globally across all of GitHub Enterprise Cloud.

QualifierExample
>ncat stars:>100 finds gists with the word "cat" that have more than 100 stars.
user:USERNAMEuser:octocat gets all gists created by @octocat.
anon:truecat anon:true includes anonymous gists in your search for cat-related gists.
NOTNOT cat excludes all results containing cat.
fork:onlycat 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.

QualifierExample
filename:FILENAMEfilename:.bashrc finds all gists with a ".bashrc" file.
language:LANGUAGEcat language:html finds all gists with the word "cat" with a HTML file.
extension:EXTENSIONjoin extension:coffee finds all instances of "join" in gists with a coffee extension.
size:>nsystem size:>1000 finds all instances of "system" in gists containing a file larger than 1 MB.