1hub-gist(1)                       hub manual                       hub-gist(1)
2
3
4

NAME

6       hub-gist - Create and print GitHub Gists
7

SYNOPSIS

9       hub gist create [-oc] [--public] [FILES...]
10       hub gist show ID [FILENAME]
11

COMMANDS

13       create
14           Create a new gist. If no FILES are specified, the content is read
15           from standard input.
16
17       show
18           Print the contents of a gist. If the gist contains multiple files,
19           the operation will error out unless FILENAME is specified.
20

OPTIONS

22       --public
23           Make the new gist public (default: false).
24
25       -o, --browse
26           Open the new gist in a web browser.
27
28       -c, --copy
29           Put the URL of the new gist to clipboard instead of printing it.
30

EXAMPLES

32           $ echo hello | hub gist create --public
33
34           $ hub gist create file1.txt file2.txt
35
36           # print a specific file within a gist:
37           $ hub gist show ID testfile1.txt
38

SEE ALSO

40       hub(1), hub-api(1)
41
42
43
44
45hub version 2.14.2                07 Mar 2021                      hub-gist(1)
Impressum