Gist is a service hosted by GitHub that lets you paste unlimited amounts of text if you have a GitHub account.
This document explains how to create a Gist from a text document so that you can share it with others.
It is simple to create a gist from a text file.
- Copy-paste the contents of the text file to the large text box on https://gist.github.com
- Create a public gist and copy the browser's url.
- Open the text file so that you can view the text.
- Select all the text from the text file.
(use the hotkey comboctrl+A
on Windows and Linux, orcmd+A
on Mac). - Copy all the selected text to your clipboard.
(use the hotkey comboctrl+C
on Windows and Linux, orcmd+C
on Mac). - Open https://gist.github.com to start creating a new gist.
- Paste the text into the large text box
(use the hotkey comboctrl+V
on Windows and Linux, orcmd+V
on Mac). - Click "Create public gist".
- Select the text in your web browser's address bar.
(use the hotkey comboctrl+L
on Windows and Linux, orcmd+L
on Mac). - Copy the URL to your new gist from your web browser's address bar.
(use the hotkey comboctrl+C
on Windows and Linux, orcmd+C
on Mac).
If you are comfortable with using the command line in a terminal, you can create a gist efficiently.
- Mac: Run the command
gh gist create --public <path/to/filename.log> | pbcopy
- Windows: Run the command
gh gist create --public <path/to/filename.log> | clip
- Linux: install a terminal clipboard interface like
xclip
so you can be cool too or just copy the output of the command.
The gist is created and the url has been copied to your clipboard.