What is a Gist?

Anyone who has been hanging around Github for the past few months has heard plenty of talk about gist, gists, and gisting. My investigations at gist.github.com lead me to believe that it was just a way to paste text or code onto the web, but I still had no idea what it was for, who would see it, or how it would be accessed. Here’s an example gist:

Picture_5

One thing that’s become clear to me is that I’m not half the hacker that any of the Github guys are, and as such, had no idea what a gist was. Well, when they opened their new support forums, I found it to be a good opportunity to ask the experts. I quickly received a response from tekkub:

If you hang out on an IRC channel for developers, you often find need to paste large blocks of code. Doing this directly in IRC is a very bad thing…

 But of course, there are other uses beyond that. Sometimes I toss handy snippets of code into gist so I can find them later if I need. It’s also great for sending error output to someone.

 
Well, that’s basically all there is to it. If you paste some code into their gist tool, it will format itself correctly and create a permanent URL which you can send to a collaborator or coworker. I had always just used campfire for this, but gisting seems to be the free, widely available version.
 
Github recently released an emacs mode for gisting as well. The above gist was created by simply highlighting the code in emacs and hitting M-x gist-region-private. It automatically created a gist at the url

https://gist.github.com/4219a1d1dd2e76539579

and copied that URL to my clipboard. Easy as that.
 
Thanks for clearing this up.