link: https://github.com/defunkt/gist
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
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'