How to upload images to raw.githubusercontent.com - Stack Overflow
高洛峰2017-05-19 10:46:42
0
2
1104
The image address of readme.md of some projects seen on github is http://raw.githubusercontent....user name/project name/branch name/file path. How do you upload the file?
Actually, the problem is a bit complicated. The simplest way is to put the files that need to be uploaded in the project and upload them to github. Go to the file page, click download to jump to a new page, and just copy its URL.
https://rawgit.com/ Serves files from raw.githubusercontent.com, but with the correct content types.
By the way, in issues 里面图片可以直接拖拽,这样会自动上传到https://cloud.githubusercontent.com
At the same time, when using pictures in the readme, you can also create a directory under the project to store these pictures, and markdown quotes https://github.com/你的github用户名/项目名/blob/分支/存放图片目录/图片名 to quote
Actually, the problem is a bit complicated. The simplest way is to put the files that need to be uploaded in the project and upload them to github. Go to the file page, click download to jump to a new page, and just copy its URL.
https://rawgit.com/
Serves files from raw.githubusercontent.com, but with the correct content types.
By the way, in
issues
里面图片可以直接拖拽,这样会自动上传到https://cloud.githubusercontent.com
At the same time, when using pictures in the readme, you can also create a directory under the project to store these pictures, and markdown quotes
https://github.com/你的github用户名/项目名/blob/分支/存放图片目录/图片名
to quote