Skip to content

Instantly share code, notes, and snippets.

@shotahorii
Created March 3, 2019 23:51
Show Gist options
  • Save shotahorii/c3a703d24a35fadbd7ba9990e0e8aa2e to your computer and use it in GitHub Desktop.
Save shotahorii/c3a703d24a35fadbd7ba9990e0e8aa2e to your computer and use it in GitHub Desktop.
upload_image_gist

How to upload an image on your gist

  1. Create a gist or reuse one of your gists.
  2. Clone your gist:
git clone https://gist.github.com/<username>/<hash>.git
  1. Add your image to your gist's repository:
git add my-image.jpg
  1. Commit the image:
git commit -m "adding my image to my gist"
  1. Update gist by pushing you modifications:
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment