LinuxCommandLibrary

gist

gist

TLDR

Log in in gist on this computer

$ gist --login
copy


Create a gist from any number of text files
$ gist [file.txt] [file2.txt]
copy


Create a private gist with a description
$ gist --private --description "[A meaningful description]" [file.txt]
copy


Read contents from stdin and create a gist from it
$ [echo "hello world"] | gist
copy


List your public and private gists
$ gist --list
copy


List all public gists for any user
$ gist --list [username]
copy


Update a gist using the ID from URL
$ gist --update [GIST_ID] [file.txt]
copy

Copied to clipboard