1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 01:02:09 +02:00
tldr/pages/common/gist.md
Thales Mello efedbb2835 gist: add page (#1389)
* Include gist page

* Fix linting errors

* Quote "hello world" in the echo commnad

* Change wording to make explanation clearer

* Further simplify descriptions of gist command

* Simplify description of the update gist command
2017-05-29 16:02:09 +01:00

23 lines
472 B
Markdown

# gist
> Upload code to https://gist.github.com.
- 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`
- Use the id from the gist URL to modify or include a file:
`gist -u {{GIST_ID}} {{file.txt}}`