Gist adalah cara sederhana untuk berbagi snippet. Semua gist adalah repository git yang mendukung versioning, forking, dan dapat digunakan sebagai repository git.
Step 1: Create a Gist
- Log in to Github
- Click the Gist link at the top of the screen (or go to gist.github.com)
- Fill out the file name (description is optional)
- Enter your code
- Click Create Public Gist
- Optional: You can also click Add File at the bottom to split your code snippet up into several different files if you need to.
Step 2: Embed your Gist
Once you create your Gist, you will be presented with a confirmation page. Click the show embed link and copy/paste the script tag on to your website.