准备GitHub账号
这一步就不用说了
新建仓库
选择新建仓库,如图
填写仓库信息
[外链图片转存失败(img-jrHsv1ze-1563860046184)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/[email protected])]
创建 token
创建 token 并复制保存,操作如图
[外链图片转存失败(img-igQBENfg-1563860046184)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/[email protected])]
[外链图片转存失败(img-kCYGkIeu-1563860046185)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/[email protected])]
[外链图片转存失败(img-rDx60Na1-1563860046185)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/[email protected])]
[外链图片转存失败(img-vkbf6WCg-1563860046186)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/[email protected])]
保存这个token,因为他只会出现一次
[外链图片转存失败(img-0mb706MG-1563860046187)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/[email protected])]
至此 token创建完毕
配置PicGo
配置
仓库名 即你的仓库名
分支名 默认 master
Token 就是刚刚复制的那一串字符
存储路径 这个可以填也可以不填,填了的话图片就上传到 git 中 data 这个文件夹
域名 https://raw.githubusercontent.com/[这里写你的仓库名称]]/master
例如:https://raw.githubusercontent.com/kevinlu98/cloudimg/master
[外链图片转存失败(img-l3gfmhnG-1563860046188)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/[email protected])]
至此,搭建教程完成
注:上传的文件不能同名
效果预览:https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/[email protected]