typora使用github做图床

目录

  • git仓库做图床
    • 软件准备
    • github准备
      • 创建仓库
      • 仓库设为公开
      • 获取token
    • picgo准备
      • 下载插件
      • 设置插件
    • typora设置
      • 文件中的偏好设置

git仓库做图床

软件准备

点击下载

①PicGo

②typora

github准备

创建仓库

typora使用github做图床_第1张图片

仓库设为公开

仓库设置settings最下面

typora使用github做图床_第2张图片

确认时用户名/仓库名

typora使用github做图床_第3张图片

获取token

个人设置settings中

typora使用github做图床_第4张图片

在开发者设置的个人令牌中,生成时自主选择日期和开放权限即可

typora使用github做图床_第5张图片

typora使用github做图床_第6张图片
typora使用github做图床_第7张图片

解决dns污染和host设置错误无法上传和打开图片

C:\Windows\System32\drivers\etc

C:\Windows\System32\drivers\etc\hosts

用记事本或者notepad++打开hosts文件

添加到文件最末尾

# GitHub Start

140.82.113.3      github.com
140.82.114.20     gist.github.com
151.101.184.133    assets-cdn.github.com
151.101.184.133    raw.githubusercontent.com
151.101.184.133    gist.githubusercontent.com
151.101.184.133    cloud.githubusercontent.com
151.101.184.133    camo.githubusercontent.com
151.101.184.133    avatars0.githubusercontent.com
199.232.68.133     avatars0.githubusercontent.com
199.232.28.133     avatars1.githubusercontent.com
151.101.184.133    avatars1.githubusercontent.com
151.101.184.133    avatars2.githubusercontent.com
199.232.28.133     avatars2.githubusercontent.com
151.101.184.133    avatars3.githubusercontent.com
199.232.68.133     avatars3.githubusercontent.com
151.101.184.133    avatars4.githubusercontent.com
199.232.68.133     avatars4.githubusercontent.com
151.101.184.133    avatars5.githubusercontent.com
199.232.68.133     avatars5.githubusercontent.com
151.101.184.133    avatars6.githubusercontent.com
199.232.68.133     avatars6.githubusercontent.com
151.101.184.133    avatars7.githubusercontent.com
199.232.68.133     avatars7.githubusercontent.com
151.101.184.133    avatars8.githubusercontent.com
199.232.68.133     avatars8.githubusercontent.com

# GitHub End

cmd中执行命令刷新

ipconfig /flushdns

typora使用github做图床_第8张图片

picgo准备

下载插件

搜索下载插件

typora使用github做图床_第9张图片

设置插件

设置插件

typora设置

文件中的偏好设置

设置后测试通过即可

这么设置可以在插入图片时自动上传

typora使用github做图床_第10张图片

你可能感兴趣的:(github)