Skip to main content

This version of GitHub Enterprise Server was discontinued on 2023-09-25. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.

Searching gists

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

Search gists

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

>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.

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.