download the package rename to gist(if not in windows) and put in any $PATH folder.
# in your work folder
$ gist [flags] [files...]
# example
# set token
$ gist -s <your token>
# create gist with file1 and file2
$ gist file1 file2
# will return gist web link
# create public gist
$ gist -p file
# add your custom description
$ gist -d="your custom description"