gh-gist - Man Page
Manage gists
Examples (TL;DR)
- 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 ... --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
Synopsis
gh gist <command> [flags]
Description
Work with GitHub gists.
Available Commands
- gh-gist-clone(1)
Clone a gist locally
- gh-gist-create(1)
Create a new gist
- gh-gist-delete(1)
Delete a gist
- gh-gist-edit(1)
Edit one of your gists
- gh-gist-list(1)
List your gists
- gh-gist-rename(1)
Rename a file in a gist
- gh-gist-view(1)
View a gist
See Also
Referenced By
gh(1), gh-gist-clone(1), gh-gist-create(1), gh-gist-delete(1), gh-gist-edit(1), gh-gist-list(1), gh-gist-rename(1), gh-gist-view(1).
Jul 2024 GitHub CLI manual