您的位置:首页 > 编程语言

conding.net或github,readme.md添加图片

2016-03-18 18:34 573 查看
原因:
将图片放在仓库里面,在文件里链接它,最后 push 到 github 上。

github 图片链接格式:
(http://github.com/yourname/your-repository/raw/master/images-folder/xxx.png)

coding 图片链接格式:
(https://coding.net/u/yourname/p/your-repository/git/blob/master/images-folder/xxx.png)

要自己设定的:yourname, your-repository, your-folder, xxx.png。

yourname --- 你的帐号
your-respository --- 你的 project 名
images-folder --- 你存放图片的文件夹,如果是直接放在 project 的项目根目录的話,就可以省略這個
xxx.png --- 你的图片名

然后在 README.md 里添加:

例如:我在 "wo"的 帐号 > "Beautiful"工程仓库 > master远程分支>根目录里的 screenshots 目录,在该目录里有一个 01.jpg 截图。那么添加链接的方式如下

![image](https://github.com/wo/Beautiful/raw/master/screenshots/01.png)

![image](https://coding.net/u/wo/p/Beautiful/git/blob/master/screenshots/01.png)

原文作者:hhktony

原文链接:github readme.md 添加图片
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: