GitHub Gist is a feature of GitHub that allows users to share code snippets with others in a simple and easy way. Every Gist is a Git repository, which means that it can be forked and cloned. Gists can be public or secret. Public Gists show up in Discover, where people can browse new Gists as theyre created. Theyre also searchable, so you can use them if youd like other people to find and see your work. Secret Gists dont show up in Discover and are not searchable unless you are logged in and are the author of the secret Gist. Secret Gists arent private, so if you send the URL of a secret Gist to a friend, theyll be able to see it. However, if someone you dont know discovers the URL, theyll also be able to see your Gist.
Gists can be created from the GitHub website or from within an integrated development environment (IDE) like WebStorm. To create a Gist, you can select a code fragment in the editor or files and folders in the Project tool window. You can also save console output to a Gist by right-clicking anywhere in the tool window or tab that contains that output and choosing Create Gist from the context menu of the selection. In the Create Gist dialog, you can specify the name for your Gist under Filename and enter a description of the code you are going to publish. You can select the Secret option to create a secret Gist or deselect it to create a public Gist.
Gists are useful for sharing code snippets, entire files, or even applications. They can be used for more like a memo or to write down what you think about a project and share it with your teammates. Gists can also be pinned to your profile so other people can see them easily.