search

Home  >  Q&A  >  body text

How to upload images to raw.githubusercontent.com - Stack Overflow

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?

高洛峰高洛峰2771 days ago1136

reply all(2)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-19 10:48:42

    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.

    reply
    0
  • 某草草

    某草草2017-05-19 10:48:42

    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

    reply
    0
  • Cancelreply