public
Fork of defunkt/gist
Description: Absolutely the best command line gister.
Homepage:
Clone URL: git://github.com/adelcambre/gist.git
Andy Delcambre (author)
Mon Oct 26 15:50:46 -0700 2009
commit  aaaa11ea89334223435821256f2d911def8f5942
tree    650d37fd248908bbd0c0810ca0c1572de0130fa7
parent  99061a6baa6e4860349844f48773119daedd5eff parent  595bddc77386b46f30dcae83748d4e2cc9d1b219
gist /
name age message
file LICENSE Thu Oct 30 11:11:58 -0700 2008 MIT [defunkt]
file README.markdown Mon Apr 27 19:05:24 -0700 2009 `github.user` not `github.username`. (Should be... [defunkt]
file battle.png Fri Oct 10 17:20:04 -0700 2008 instructions for real [defunkt]
file gist.rb Loading commit data...
README.markdown

Gist: The Script

Works great with Gist: The Website.

Installation

curl http://github.com/defunkt/gist/raw/master/gist.rb > gist &&
chmod 755 gist &&
sudo mv gist /usr/local/bin/gist

Use

gist < file.txt
echo secret | gist --private # or -p
gist 1234 > something.txt

Authentication

Just have your git config set up with your GitHub username and token.

git config --global github.user "your-github-username"
git config --global github.token "your-github-token"

You can find your token under your account.

Ninja vs Shark

Ninja vs Shark