[技术学习记录]Github README.md 添加图片(图文)

[技术学习记录]Github README.md 添加图片(图文)

原文地址:https://www.wentong.org/tech/201806232865.html

首先将图片上传到仓库(repository)中,在浏览器进入远程Github仓库找到图片打开图片。那么当前浏览器链接就是图片地址。

Github 图片链接格式

http://github.com/your_name/your_repository/raw/master/images_folder/img.jpg

your_name           -- 你的帐号

your_repository  -- 你的仓库名

images_folder -- 你存放图片的文件夹,如果是直接放在仓库根目录下,可以忽略这个

img.jpg      -- 你的图片名

打开README.md 进入编辑状态。放入如下代码进入编辑框。保存即可看见效果

然后在 README.md 里添加

例如我的账号是itmyhome2013 仓库为readme_add_pic 下面有个images文件 里面有图片nongshalie.jpg

![image](http://github.com/itmyhome2013/readme_add_pic/raw/master/images/nongshalie.jpg)


猜你喜欢

转载自blog.csdn.net/weixin_42450305/article/details/80895848
今日推荐