-
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 [email protected]:<hash>.git # or with ssh
-
Go to the directory:
cd <hash>
-
Copy poster file into directory:
cp <path-to-poster>/poster.png .
-
Add your image to your gist's repository:
git add poster.png
-
Commit the image:
git commit -m "Add poster"
-
Update gist:
git push
Forked from mroderick/how-to-add-image-to-gist.md
Last active
August 25, 2023 16:52
-
-
Save Neeratyoy/b80820ca32f903c66b8541cde78296c2 to your computer and use it in GitHub Desktop.
How to add an image to a gist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment