gistit

Create and manage GitHub Gists from the command line

brewmacoslinux
Try with needOr install directly
Source

About

Command-line utility for creating Gists

Commands

gistit

Examples

Create a new Gist from a file$ gistit path/to/file.txt
Create a Gist from stdin with a description$ cat script.sh | gistit -d 'My useful script'
Create a public Gist$ gistit -p path/to/file.txt