Skip to content

Instantly share code, notes, and snippets.

@dariodaich
Last active January 23, 2017 23:39
Show Gist options
  • Save dariodaich/86c1b9ea4157842b28a358cb6229bf85 to your computer and use it in GitHub Desktop.
Save dariodaich/86c1b9ea4157842b28a358cb6229bf85 to your computer and use it in GitHub Desktop.

defunkt/gist cheat sheet

link: https://github.com/defunkt/gist

Main features

gist (options) my_gist.rb

Description Option Full command
single file upload / filename.format
multiple file upload / file1 file2 file3
make private gist -p -p file.rb
add description to a gist -d -d "your description" file.rb
update gist -u -u GIST_ID file.rb
open gist in browser on upload -o -o <file.rb
read and print gist on STDOUT -r -r GIST_ID
upload gist anonymously (after login) -a -a file.rb

Gist ID:

..gist.github.com/dariodaic/86461e5e54dbf416a3306d6deece8c32

Associating gists with your account

Login with gist --login.

  • afterwards your gists are connected to your GitHub account
  • stores your OAuth token in '~/.gist'
  • if you want to remove association to your account, delete '~/.gist'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment