1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 01:06:04 +02:00
tldr/pages/common/gh-gist.md
Managor ad7b6f797c
common*: refresh old pages part 6 (#16288)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-03 05:57:05 +03:00

605 B

gh gist

Work with GitHub Gists. More information: https://cli.github.com/manual/gh_gist.

  • Create a new Gist from one or more 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 ...}} {{[-d|--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 {{[-L|--limit]}} {{42}}

  • View a Gist in the default browser without rendering Markdown:

gh gist view {{id|url}} {{[-w|--web]}} {{[-r|--raw]}}