Skip to content

Instantly share code, notes, and snippets.

@DarkVss
Created June 7, 2022 07:29
Show Gist options
  • Save DarkVss/38484ab6c25dba95b10d49049b57720d to your computer and use it in GitHub Desktop.
Save DarkVss/38484ab6c25dba95b10d49049b57720d to your computer and use it in GitHub Desktop.
Add image as a gist

Image as a gist

  1. Create a gist

  2. Clone your gist:

    # `<hash>` - gist's hash
    git clone https://gist.github.com/<hash>.git # with https
    git clone git@gist.github.com:<hash>.git     # or with ssh
  3. Add your image to your gist's repository:

    git add your-image.jpg
  4. Commit the image:

    git commit -m "Add image"
  5. Update gist:

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