gist

Command-line tool for creating and managing GitHub Gists

brewmacoslinux
Try with needOr install directly
Source

About

Command-line utility for uploading Gists

Commands

gist

Examples

Create a new public gist from a file$ gist myfile.txt
Create a private gist from stdin$ cat script.sh | gist -p
Create a gist with a custom filename and description$ gist -f myname.py -d 'My Python script' myfile.py