Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vgoma
Forked from remarkablemark/how-to-add-image-to-gist.md
Last active January 28, 2021 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgoma/560c844b8359a88333e642b7e878067c to your computer and use it in GitHub Desktop.
Save vgoma/560c844b8359a88333e642b7e878067c to your computer and use it in GitHub Desktop.
How to add images to a Gist

How to add images to a Gist

Clone your gist (replace <hash> with your gist's hash):

git clone git@gist.github.com:<hash>.git

Navigate to your gist’s directory:

cd <hash>
open .

Commit and push:

git add tulip.jpg
git commit -m "Add tulip to gist"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment