tldr/pages/common/gist.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

654 B

gist

Upload code to https://gist.github.com. More information: https://github.com/defunkt/gist.

  • Login in gist on this computer:

gist --login

  • Create a gist from any number of text files:

gist {{file.txt}} {{file2.txt}}

  • Create a private gist with a description:

gist -p -d "{{A meaningful description}}" {{file.txt}}

  • Read contents from stdin and create a gist from it:

{{echo "hello world"}} | gist

  • List your public and private gists:

gist -l

  • List all gists for the currently logged in user:

gist -l {{username}}

  • Use the id from the gist URL to modify or include a file:

gist -u {{GIST_ID}} {{file.txt}}