-
Create or find a gist that you own.
-
Clone your gist (replace
<hash>
with your gist's hash):# with ssh git clone git@gist.github.com:<hash>.git mygist # with https git clone https://gist.github.com/<hash>.git mygist
-
Change to your gist’s directory:
cd mygist
-
Add and commit the image:
git add tulip.jpg git commit -m "Add tulip to gist"
-
Update remote:
git push origin master
See blog post.
@vaimalaviya1233 You should try it on a gist of your own and find out! If that doesn't work, you can download a gist as a zip file - so you might use that to share a set of files, with some limitations (eg if you don't need a directory structure in the zip). Good luck!