From efedbb28359321804b2f9be094328e72ecb5a8ef Mon Sep 17 00:00:00 2001 From: Thales Mello Date: Mon, 29 May 2017 12:02:09 -0300 Subject: [PATCH] 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 --- pages/common/gist.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/gist.md diff --git a/pages/common/gist.md b/pages/common/gist.md new file mode 100644 index 000000000..3b5cd47a2 --- /dev/null +++ b/pages/common/gist.md @@ -0,0 +1,23 @@ +# 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}}`