Easy way to create GitHub Gists through the command line. Simply give it the files to upload and gst will return the URL to the new gist.
Edit previously created gist specified with ID
Set gist description
Delete FILE from gist being edited
Set file name when reading from stdin
Change the GitHub API URL (default: https://api.github.com/gists)
Make gist private
Make gist public (default)
Change the GitHub account the gist will be posted under. A password can given as well with a separating colon, a prompt is provided if not.
Post gist anonymously (default)
Print help and exit
Print version info and exit
Create a new gist of file.txt
:
$ gst file.txt
https://gist.github.com/<new-id>
There is also support for multiple files in a single gist:
$ gst README.md Makefile prog.c
https://gist.github.com/<new-id>
Specify the gist's description:
$ gst -d 'a cool shell script' script.sh
https://gist.github.com/<new-id>
The gist's URL can be piped to other programs, for example to your clipboard to