How to add an image to a gist
-
Create a gist if you haven't already.
-
Clone your gist:
# make sure to replace `<hash>` with your gist's hash git clone https://gist.github.com/<hash>.git # with https git clone git@gist.github.com:<hash>.git # or with ssh
-
Add your image to your gist's repository:
git add your-image.jpg
-
Commit the image:
git commit -m "Add image"
-
Update gist:
git push origin master
For those that are not as familiar with command line can do it another way. If you open the issues tab of a repo on GitHub, you can drag and drop the file into an Issues and it will create a link that you can easily add to Gist. Paste the link into the Gist and save the Gist as a .md file.