Marco Betschart
Search
K
Comment on page

Add Binary to GitHub Gist

A neat little trick to keep binaries around which might disappear otherwise - or simply to add pictures to your Gists

How to add a binary file to a GitHub Gist

First make sure git is installed on the local machine and then:
  1. 1.
    Create a new Gist
  2. 2.
    Clone to your local machine (replace <hash> with your Gist's hash):
    git clone [email protected]:<hash>.git gist
  3. 3.
    Add and commit the binary:
    cd gist
    git add VCForPython27.msi
    git commit -m "Added VCForPython27.msi binary"
  4. 4.
    Push changes to GitHub:
    git push origin

Acknowledgements

Credit goes to Mark for this great trick!