Gist: How are images uploaded to a gist?

前端 未结 8 2130
夕颜
夕颜 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:37

    1. Create a gist or reuse one of your gists.
    2. Clone your gist:

      git clone https://gist.github.com/.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
      

提交回复
热议问题