Typora圖片自動上傳(PicGo + Gitee)
阿新 • • 發佈:2022-04-02
1.建立碼雲的私人訪問令牌
先儲存著私人令牌,後面會用到
2.配置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" } }
3.驗證上傳
1.先安裝gitee-uploader上傳外掛(需安裝node.js)
2.進入到C:\Users\AlanLee\AppData\Roaming\Typora\picgo\win64開啟cmd
3.執行.\picgo.exe install gitee-uploader
4.最後點選驗證圖片上傳
使用
自己的
{ "picBed": { "current": "gitee", "uploader": "gitee", "gitee": { "branch": "master", "customPath": "yearMonth", "customUrl": "", "path": "images/", "repo": "zhouzhangjian/typora_images", "token": "cfad4459b0bc42635cab6c5c4db91fdf" }, "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" } }