From 563ccc9b2ae3df3ec53724a5333b75cd66aa6a47 Mon Sep 17 00:00:00 2001 From: jasonxia23 Date: Fri, 25 Aug 2017 19:53:33 +0800 Subject: [PATCH] gist: add two examples (#1453) --- pages/common/gist.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/gist.md b/pages/common/gist.md index 3b5cd47a2..b812c1bd3 100644 --- a/pages/common/gist.md +++ b/pages/common/gist.md @@ -2,6 +2,10 @@ > Upload code to https://gist.github.com. +- Login in gist on this computer: + +`gist --login` + - Create a gist from any number of text files: `gist {{file.txt}} {{file2.txt}}` @@ -18,6 +22,10 @@ `gist -l` +- List all gists for the currently logged in user: + +`gist -l {{user_name}}` + - Use the id from the gist URL to modify or include a file: `gist -u {{GIST_ID}} {{file.txt}}`