Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save sebacruz/c4076d6b7cd056252d7815e2505ed9f3 to your computer and use it in GitHub Desktop.

Select an option

Save sebacruz/c4076d6b7cd056252d7815e2505ed9f3 to your computer and use it in GitHub Desktop.

Revisions

  1. @remarkablemark remarkablemark revised this gist Jun 17, 2016. No changes.
  2. @remarkablemark remarkablemark revised this gist Jun 17, 2016. 1 changed file with 24 additions and 0 deletions.
    24 changes: 24 additions & 0 deletions how-to-add-image-to-gist.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # How to add an image to a gist

    1. Create a [gist](https://gist.github.com) if you haven't already.
    2. Clone your gist:
    ```sh
    # make sure to replace `<hash>` with your gist's hash
    git clone https://gist.github.com/<hash>.git # with https
    git clone [email protected]:<hash>.git # or with ssh
    ```

    3. Add your image to your gist's repository:
    ```sh
    git add your-image.jpg
    ```
    4. Commit the image:
    ```sh
    git commit -m "Add image"
    ```
    5. Update gist:
    ```sh
    git push origin master
    ```
  3. @remarkablemark remarkablemark revised this gist Jun 17, 2016. 2 changed files with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion hello-world.md
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    hello world
    Binary file added tulip.jpg
    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
  4. @remarkablemark remarkablemark created this gist Jun 17, 2016.
    1 change: 1 addition & 0 deletions hello-world.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    hello world