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 no FILES are 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 unless FILENAME is 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