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
最後點擊驗證圖片上傳