Gist: How are images uploaded to a gist?

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

    I was looking for answer for the same question, here is what I just found:

    1. You can clone your gist as a git repository and add your picture, then push to origin. See loading-thumbnail-into-gist-for.

    2. There is a script written to do this: hecticjeff/gist-img.

    I have not tried the above solutions yet, but pretty sure they should work. I did try using defunkt/gist to update my gist with a png but ended up displaying a binary file in my gist.

提交回复
热议问题