You can create two kinds of gists: public and private. Create a public gist if you're ready to share your ideas with the world or a secret gist if you're not.

Editing gists

Gist is powered by the Ace editor, which supports syntax highlighting, indentation awareness, multiple cursors, and many more features. You can also drag and drop a file of code from your desktop directly into the gist editor.

Gist edit instance

Creating a gist

Tip: You cannot convert your public Gist into a secret Gist.

If you are signed in to GitHub when you create a gist, the gist will be associated with your account and you will see it in your list of gists when you navigate to your gist home page.

  1. Sign in to GitHub.
  2. Navigate to your gist home page.
  3. Type an optional description and name for your gist. Gist name description

  4. Type the text of your gist into the gist text box. Gist text box

  5. Do one of the following:

    • To create a public, searchable gist, click Create public gist.
    • To create a secret gist that is not searchable by other users, click Create secret Gist. Gist create button

Creating an anonymous gist

If you are not signed in to GitHub, you will create an anonymous gist. Use anonymous gists if you're unable to log into your GitHub account, or if you haven't signed up for an account yet.

Warning: Anonymous gists cannot be deleted from the web. To have an anonymous gist deleted, contact GitHub Support. Please provide the URL of the gist you wish to delete.

Maps in gists with GeoJSON

Gist supports mapping GeoJSON files. These maps are also displayed in embedded gists, so you can easily share and embed maps!