LinuxCommandLibrary

gh-gist

Work with GitHub Gists on the command line.

TLDR

Create a new Gist from a space-separated list of files

$ gh gist create [path/to/file1 path/to/file2 ...]
copy


Create a new Gist with a specific [desc]ription
$ gh gist create [path/to/file1 path/to/file2 ...] --desc "[description]"
copy


Edit a Gist
$ gh gist edit [id|url]
copy


List up to 42 Gists owned by the currently logged in user
$ gh gist list --limit [42]
copy


View a Gist in the default browser without rendering Markdown
$ gh gist view [id|url] --web --raw
copy

SYNOPSIS

gh gist <command> [flags]

DESCRIPTION

Work with GitHub gists.

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-view(1)

View a gist

SEE ALSO

gh(1)

Copied to clipboard