Gist: How are images uploaded to a gist?

前端 未结 8 2027
夕颜
夕颜 2020-12-22 15:33

Here is the image file: https://gist.github.com/mbostock/5503544#file-thumbnail-png

I tried to drag-and-drop the image file in the edit mode of a gist. That didn\'t

相关标签:
8条回答
  • 2020-12-22 16:35

    uploading the image somewhere and using the HTML <img> tag works for me

    0 讨论(0)
  • 2020-12-22 16:37
    1. Create a gist or reuse one of your gists.
    2. Clone your gist:

      git clone https://gist.github.com/<hash>.git
      
    3. Add your image to your gist's repository:

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

      git commit -m "adding my image to my gist"
      
    5. Update gist by pushing you modifications:

      git push origin master
      
    0 讨论(0)
提交回复
热议问题