Typora图片自动上传(PicGo + Gitee)

Typora图片自动上传(PicGo + Gitee)

创建码云的私人访问令牌

Typora图片自动上传(PicGo + Gitee)_第1张图片

先保存着私人令牌,后面会用到

配置PicGo

Typora图片自动上传(PicGo + Gitee)_第2张图片

  1. 选择PicGo-Core(command line)

  2. 点击下载或更新

  3. 打开配置文件

    编辑内容

    {
           
      "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"
      }
    }
    

    Typora图片自动上传(PicGo + Gitee)_第3张图片

  4. 验证上传

    先安装gitee-uploader上传插件(需安装node.js)

    进入到C:\Users\AlanLee\AppData\Roaming\Typora\picgo\win64

    执行

    .\picgo.exe install gitee-uploader
    

    Typora图片自动上传(PicGo + Gitee)_第4张图片

    最后点击验证图片上传

    Typora图片自动上传(PicGo + Gitee)_第5张图片

使用

Typora图片自动上传(PicGo + Gitee)_第6张图片

你可能感兴趣的:(工具,Typora)