将图片放在仓库里面,在文件里链接它,最后 push 到 github 上。
github 图片链接格式:
(https://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/gif --- 你的图片名
然后在 README.md 里添加:
例如:我在我的 gitFirstStudy 文件夹下一个 imageTest 目录,在该目录里有一个 test.gif 截图。那么添加链接的方式如下
![gifImage](https://github.com/#fengyang0329/gitFirstStudy/raw/master/imageTest/test.gif)