【发布时间】:2013-05-07 18:10:45
【问题描述】:
这是图片文件: https://gist.github.com/mbostock/5503544#file-thumbnail-png
我尝试在 gist 的编辑模式下拖放图像文件。这在 Chrome 和 FireFox 中似乎不起作用。
更新:与 GitHub 来回发送电子邮件后,不支持此功能(拖放二进制文件,包括图像)。
【问题讨论】:
-
这很容易......只需使用任何 git 客户端......从同步项目,复制文件到项目目录,添加到 repo(git add),再次提交和同步......
-
fx ...
git clone https://gist.github.com/6afe8ae9d00c98694dc8,cd 6afe8ae9d00c98694dc8,xcopy path/to/src/file.any file.any,git add any.any,git commit -m 'n/a',git push -
这里展示了几种方法 - gist.github.com/cben/46d9536baacb7c5d196c.
-
现在(2021,8 年后)正式支持。见my answer below。