1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 05:42:09 +02:00
tldr/pages/common/gist.md
Vitor Henrique 61405c6e0e
pages*: fix small typos (#11850)
* pages*: fix small typos

* pages/*: make help and version commands consistent

* pages/*: follow "path/to/file" pattern

* nop: generic display help wording
2023-12-27 12:11:30 +05:30

654 B

gist

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

  • Log in 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 --private --description "{{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 --list

  • List all public gists for any user:

gist --list {{username}}

  • Update a gist using the ID from URL:

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