不让win版git客户端中的LF自动转CRLF
git config core.autocrlf false
设置全局变量
git config --global user.name "BlueDriver"
git config --global user.email "[email protected]"
git config --list
设置非全局变量,即在某项目目录下执行设置
git config user.name "gitlab's Name"
git config user.email "[email protected]"
git config --list
git config --list
查看当前配置, 在当前项目下面查看的配置是全局配置+当前项目的配置, 使用的时候会优先使用当前项目的配置
md文件中图片的路径要用
/
,不要用\
,否则线上显示不了的
目录结构演示:
|
|---- gif (Folder)
| |---- pic.gif
| |---- pic.png
|
|---- README.md
在README.md中若要引用gif目录的图片,则链接应设置为

其中https://raw.githubusercontent.com/
为固定部分,后跟账号名/项目名/分支名/目录名/图片名称
即:
https://raw.githubusercontent.com/账号名/项目名/分支名/目录名/图片名称