github readme.md 添加图片

简要:

    将图片放在仓库里面,在文件里连接它,最后 push 到 github 上。

github 图片连接格式:

(http://github.com/yourname/your-repository/raw/master/images-folder/xxx.png)

要本身设定的:yourname, your-repository, your-folder, xxx.png。

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

而后在 README.md 里添加:

例如:我在个人 dotvim 文件夹下一个 screenshots 目录,在该目录里有一个 vim-screenshot.jpg 截图。那么添加连接的方式以下

 ![image](https://github.com/ButBueatiful/dotvim/raw/master/screenshots/vim-screenshot.jpg)git

相关文章
相关标签/搜索