2017-05-29 16:02:09 +01:00
|
|
|
# gist
|
|
|
|
|
|
|
|
> Upload code to https://gist.github.com.
|
2019-06-07 11:58:24 +01:00
|
|
|
> More information: <https://github.com/defunkt/gist>.
|
2017-05-29 16:02:09 +01:00
|
|
|
|
2017-08-25 12:53:33 +01:00
|
|
|
- Login in gist on this computer:
|
|
|
|
|
|
|
|
`gist --login`
|
|
|
|
|
2017-05-29 16:02:09 +01:00
|
|
|
- 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}} `
|
|
|
|
|
2019-06-17 16:00:38 +01:00
|
|
|
- Read contents from `stdin` and create a gist from it:
|
2017-05-29 16:02:09 +01:00
|
|
|
|
|
|
|
`{{echo "hello world"}} | gist`
|
|
|
|
|
|
|
|
- List your public and private gists:
|
|
|
|
|
|
|
|
`gist -l`
|
|
|
|
|
2017-08-25 12:53:33 +01:00
|
|
|
- List all gists for the currently logged in user:
|
|
|
|
|
2020-02-08 18:56:05 +00:00
|
|
|
`gist -l {{username}}`
|
2017-08-25 12:53:33 +01:00
|
|
|
|
2017-05-29 16:02:09 +01:00
|
|
|
- Use the id from the gist URL to modify or include a file:
|
|
|
|
|
|
|
|
`gist -u {{GIST_ID}} {{file.txt}}`
|