typora使用command line與gitee同步圖牀 - 知乎

1. 安裝nodejs

下載 | Node.js 中文網 (nodejs.cn)

2.typora裏安裝picgo-core(command line)

這個安裝的速度可能有點慢,因人而異

3.此時點擊驗證圖片上傳,查看報錯地址

cd C:\Users\jaymie\AppData\Roaming\Typora\picgo\win64#進入./picgo目錄下載插件
 .\picgo.exe install gitee-uploader
.\picgo.exe install smms-user#此條可嘗試不寫

4.創建gitee倉庫

按照如上勾選創建倉庫

依次點擊“個人頭像-設置-私人令牌”

如下勾選後生成令牌

5.修改配置文件

{
  "picBed": {
    "current": "gitee",
    "uploader": "gitee",
    "gitee": {
      "branch": "master",
      "customPath": "yearMonth",
      "customUrl": "",
      "path": "",
      "repo": "用戶名/倉庫名",
      "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"
  }
}

用戶名/倉庫名可以在網址中找到

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章