利用Github搭建免费图床

准备GitHub帐号

这一步就不用说了git

新建仓库

选择新建仓库,如图github

若图片没法正常加载,请联系做者

填写仓库信息web

[外链图片转存失败(img-jrHsv1ze-1563860046184)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/QQ20190723-120233@2x.png)]svg

建立 token

建立 token 并复制保存,操做如图code

[外链图片转存失败(img-igQBENfg-1563860046184)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/QQ20190723-123510@2x.png)]
[外链图片转存失败(img-kCYGkIeu-1563860046185)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/QQ20190723-123715@2x.png)]
[外链图片转存失败(img-rDx60Na1-1563860046185)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/QQ20190723-123930@2x.png)]
[外链图片转存失败(img-vkbf6WCg-1563860046186)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/QQ20190723-124116@2x.png)]xml

保存这个token,由于他只会出现一次教程

[外链图片转存失败(img-0mb706MG-1563860046187)(https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/QQ20190723-124206@2x.png)]token

至此 token建立完毕图片

配置PicGo

下载PicGo:https://github.com/Molunerfinn/PicGoget

配置

仓库名 即你的仓库名
分支名 默认 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/QQ20190723-124710@2x.png)]

至此,搭建教程完成

注:上传的文件不能同名

效果预览:https://raw.githubusercontent.com/kevinlu98/cloudimg/master/data/QQ20190723-124710@2x.png