1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/gh-gist.md

25 lines
549 B
Markdown
Raw Normal View History

2020-11-06 06:02:47 -05:00
# gh gist
> Work with GitHub Gists on the command-line.
2020-11-06 06:02:47 -05:00
> 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}}`
2020-12-29 08:45:05 -03:00
- View a Gist in the default browser without rendering Markdown:
2020-11-06 06:02:47 -05:00
`gh gist view {{id_or_url}} --web --raw`