hub-gist(1)
π NAME π
okay bestie, welcome to hub-gist(1) β the page from the hub manual thatβs all about how to Create and print GitHub Gists. literally the gist of it, iykyk π
πΈ SYNOPSIS πΈ
hub gist create [-oc] [--public] [FILES...]
hub gist show ID [FILENAME]
π¦ COMMANDS π¦
createβ makes a brand-new gist. if noFILESare specified, the content is read from standard input. no files? no problem, stdin is right there bestie π«Άshowβ prints the contents of a gist. if the gist contains multiple files, the operation will error out unlessFILENAMEis specified. so yeah, multi-file gist means you gotta name the file, periodt π
β¨ OPTIONS β¨
--publicβ makes the new gist public (default:false). keeping it lowkey by default, iconic π-o,--browseβ opens the new gist in a web browser. main character energy in a tab π-c,--copyβ puts the URL of the new gist to clipboard instead of printing it. copy-paste slay π
π EXAMPLES π
$ echo hello | hub gist create --public
$ hub gist create file1.txt file2.txt
# print a specific file within a gist:
$ hub gist show ID testfile1.txt
π SEE ALSO π
go check those out if you wanna keep the hub lore going π
mwah π β this little manual moment comes from hub version 2.14.2, dated 07 Jan 2024.
π¦ where this page comes from
- opensuse-leap 16.0: hub 2.14.2-bp160.1.13 Β· MIT
- opensuse-leap 16.0: hub 2.14.2-bp160.1.13 Β· MIT
- opensuse-leap 16.0: hub 2.14.2-bp160.1.13 Β· MIT
- opensuse-leap 16.0: hub 2.14.2-bp160.1.13 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms