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 添加图片
将图片放在仓库里面,在文件里链接它,最后 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 添加图片
相关文章推荐
- Java第二次实验
- Python 在windows上安装BeautifulSoup
- Python同时替换多个字符串
- 据廖雪峰python3教程----python学习第二天
- java 泛型的学习和理解
- PyCharm配置GitHub
- rxjava转载
- python 基础复习笔记
- maven cargo插件使用
- C#基本语法学习(九)
- 20145324 《Java程序设计》第3周学习总结
- php的单例模式
- C++ STL--stack/queue 的使用方法
- php之单例模式
- Java常用的日期格式转换
- luajit 安装cjson
- Java实现文件MD5加密
- BSS段、数据段、代码段、堆与栈
- jdk8多线程操作文件
- Spring 之九 整合Spring MVC