Linux系统Typora配置GitHub图床

Linux环境下Typora通过PicGo-Core上传图片到GitHub配置:

config.json配置如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
{
"picBed": {
"current": "github",
"github": {
"repo": "duwei0227/picbed", // 仓库名,格式是 username/reponame
"token": "g", // github token
"path": "", // 自定义存储路径,比如 img/
"customUrl": "", // 自定义域名,注意要加 http://或者 https://
"branch": "main" // 分支名,默认是 main
}
},
"picgoPlugins": {}
}

token生成:
1、访问 https://github.com/settings/tokens

2、点击 New personal access token (classic)

3、选择token实效时间,勾选repo

4、Generate token

5、复制生成的token信息(重新访问页面时,token信息无法再次查看,需要自行保存

注意事项

  • branch需要指定,默认提交会提示分支不存在

Linux系统Typora配置GitHub图床
https://probiecoder.cn/other/picbed.html
作者
duwei
发布于
2025年4月22日
许可协议