Typora图片自动上传(PicGo + Gitee)
创建码云的私人访问令牌
先保存着私人令牌,后面会用到
配置PicGo
-
选择PicGo-Core(command line)
-
点击下载或更新
-
打开配置文件
编辑内容
{ "picBed": { "current": "gitee", "uploader": "gitee", "gitee": { "branch": "master", "customPath": "yearMonth", "customUrl": "", "path": "填写仓库中的文件夹/", "repo": "用户名/仓库", "token": "自己仓库的私人Access Token" }, "transformer": "path" }, "picgoPlugins": { "picgo-plugin-gitee-uploader": true, "picgo-plugin-github-plus": true }, "picgo-plugin-gitee-uploader": { "lastSync": "2020-04-30 01:41:13" }, "picgo-plugin-github-plus": { "lastSync": "2020-04-07 11:09:08" } }
-
验证上传
先安装gitee-uploader上传插件(需安装node.js)
进入到C:\Users\AlanLee\AppData\Roaming\Typora\picgo\win64
执行
.\picgo.exe install gitee-uploader
最后点击验证图片上传