gh gist
Work with GitHub Gists. More information: https://cli.github.com/manual/gh_gist.
-
Create a new Gist from a space-separated list of files:
gh gist create {{path/to/file1 path/to/file2 ...}}
-
Create a new Gist with a specific [desc]ription:
gh gist create {{path/to/file1 path/to/file2 ...}} --desc "{{description}}"
-
Edit a Gist:
gh gist edit {{id|url}}
-
List up to 42 Gists owned by the currently logged in user:
gh gist list --limit {{42}}
-
View a Gist in the default browser without rendering Markdown:
gh gist view {{id|url}} --web --raw
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.