-
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.
Hi can some one advise how I clone the following gist repo. https://gist.github.com/angusgrant/8599b573d600539f192d9c5709bc1e6e.
I try this git clone git@gist.github.com:8599b573d600539f192d9c5709bc1e6e.git mygist but I get error message:
git@gist.github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please advise I'm new to github/gist. thanks.