Skip to content

Instantly share code, notes, and snippets.

@juniorcesarabreu
Last active November 22, 2023 15:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juniorcesarabreu/172699b895f1fdf0da23b48d4c36ced9 to your computer and use it in GitHub Desktop.
Save juniorcesarabreu/172699b895f1fdf0da23b48d4c36ced9 to your computer and use it in GitHub Desktop.
How do you upload images to a gist?

How do you upload images to a gist?

  1. Create a gist or reuse one of your gists.
  2. Clone your gist:
git clone https://gist.github.com/<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

fonte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment