Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save laris/b5e1492ef616b8948a8f48b190c9cc24 to your computer and use it in GitHub Desktop.
Save laris/b5e1492ef616b8948a8f48b190c9cc24 to your computer and use it in GitHub Desktop.
  1. Create or find a gist that you own.

  2. Clone your gist (replace <hash> with your gist's hash):

    # with ssh
    git clone [email protected]:<hash>.git mygist
    
    # with https
    git clone https://gist.github.com/<hash>.git mygist
  3. Change to your gist’s directory:

    cd mygist
  4. Add and commit the image:

    git add tulip.jpg
    git commit -m "Add tulip to gist"
  5. Update remote:

    git push origin master

See blog post.

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