1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 19:02:09 +02:00
tldr/pages/common/gh-gist.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

24 lines
549 B
Markdown

# gh gist
> Work with GitHub Gists on the command-line.
> 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/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`