From 28a29bf304eec5904f1131c2f1fb11212c2d4f1e Mon Sep 17 00:00:00 2001 From: Alex Brenon Date: Fri, 6 Nov 2020 06:02:47 -0500 Subject: [PATCH] gh-gist: add page (#4898) --- pages/common/gh-gist.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/gh-gist.md diff --git a/pages/common/gh-gist.md b/pages/common/gh-gist.md new file mode 100644 index 0000000000..42f4d5a1af --- /dev/null +++ b/pages/common/gh-gist.md @@ -0,0 +1,24 @@ +# gh gist + +> Work with GitHub Gists on the command line. +> More information: . + +- Create a new Gist from a space-separated list of files: + +`gh gist create {{path/to/files}}` + +- Create a new Gist with a description: + +`gh gist create {{filename}} --desc "{{description}}"` + +- Edit a Gist: + +`gh gist edit {{id_or_url}}` + +- List Gists owned by the currently logged in user: + +`gh gist list --limit {{int}}` + +- View a Gist in the default browser without rendering markdown: + +`gh gist view {{id_or_url}} --web --raw`