BT

InfoQ Homepage News Github Gist: Versioning For Pasted Code

Github Gist: Versioning For Pasted Code

Bookmarks
Github just added another service: Gist, which was demoed at RubyFringe. Gist is basically a paste tool, similar to Pastie. Paste tools make it easy to share text or code - the user pastes the text into a text field on the site which returns a URL under which this text is accessible.

Gist works the same way - except with a twist: the pasted text ends up in a git repository, which is accessible via a git clone URL - it can be checked out with a git client program. Not just that, the connection works both ways: pushing a commit back to the repository makes the changes (and added files) accessible in the Gist web interface, which also allows to edit text files. Gist allows to start off from a pasted bit of text or code and collaborate over the net, either using a web interface or git tools.

Bryan Liles created a screencast demoing the Gist workflow and features. The screencast shows how to paste snippets then use the generated git clone URL to access the pasted code using command line git  and then pushing a modified version back.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.