Skip to content

Instantly share code, notes, and snippets.

@sigma
Forked from biovisualize/README.md
Created January 8, 2018 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigma/98c5ba17a841a3d6fd6cca749a074f61 to your computer and use it in GitHub Desktop.
Save sigma/98c5ba17a841a3d6fd6cca749a074f61 to your computer and use it in GitHub Desktop.
Test for attaching a png to a gist
  1. Create a new public gist on https://gist.github.com/
  2. Under "Clone this gist", copy the link (i.e., https://gist.github.com/4415518.git)
  3. If you have the command line git tools, clone this gist to a local folder: git clone https://gist.github.com/4415518.git
  4. It will add a folder with the gist id as a name (i.e., 4415518) under the current working directory. Navigate to this folder in the command line: cd 4415518 (dir 4415518 on windows)
  5. Navigate to this folder in your file explorer and add an image (i.e., test.png)
  6. Add it to git from the command line: git add test.png
  7. Commit it to git: git commit -m "I just added a file!"
  8. Push this commit to your remote gist (you will need your Github user name and password): git push
  9. Go back and refresh your Gist on https://gist.github.com/ to confirm that it worked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment