在gitee 新建一个仓库
Typora 通过命令行的方式配置上传图片到 gitee,需预先安装nodejs
#命令参数如下
npm install picgo -g
# 安装插件
picgo install gitee-uploader
# 选择插件
picgo use
? Use an uploader gitee # 选择 gitee
? Use a transformer path # path 默认
? Use plugins (Press <space> to select, <a> to toggle all, <i> to invert selection)picgo-plugin-gitee-uploader # 按空格键 -> enter
# 配置
picgo set uploader
? Choose a(n) uploader # 选择gitee
? repo: # 用户名/仓库名 (也就是仓库地址栏)
? branch: # 默认 master
? token: # 仓库私人令牌
? path: #仓库存放上传图片的文件夹名称,有默认值img
? customPath: default # 一路enter
? customUrl:
[PicGo SUCCESS]: Configure config successfully!
Typora 设置