小蜜蜂嗡嗡嗡 發表於 2023-6-8 23:11:00

使用 Obsidian + gitee 实现备份

<p>1. 设置 ssh&nbsp;公钥</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; 参考连接 :&nbsp;生成/添加SSH公钥 - Gitee.com</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; win+r 输入 cmd,打开cmd&nbsp;窗口</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; 在 窗口中,输入&nbsp;</p>
<pre data-index="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ssh-keygen -t ed25519 -C "xxxxx@xxxxx.com"</pre>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xxxxx@xxxxx.com: 尽量为 自己的邮箱地址,</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; 输入命令后,点击三次回车,(如果想自定义一些配置,请参考文档)</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="https://img-blog.csdnimg.cn/f5c5079e5cf1410c8dd4d5e5ae34294e.png" alt="" width="420" height="250"></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;然后默认在&nbsp;C:\Users\用户名\.ssh,目录下,生成三个文件</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="https://img-blog.csdnimg.cn/4dda7fe8137e4ce780562dfea566bd20.png" alt="" width="399" height="99"></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;只使用&nbsp;id_rsa.pub 文件内容即可</p>
<p>2. 导入gitee 公钥</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; 使用记事本打开&nbsp;id_rsa.pub,复制全部内容</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; 打开 gitee ,点击左上角头像,点击设置,找到ssh公钥</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 或者直接打开:https://gitee.com/profile/sshkeys&nbsp;网页</p>
<p><img src="https://img-blog.csdnimg.cn/73168e31e6e4496994a6eb35734f1b81.png" alt="" width="306" height="354"></p>
<p>&nbsp;</p>
<p><img src="https://img-blog.csdnimg.cn/b4e350dd28a349ca9d1c056a58dc331b.png" alt="" width="261" height="655"></p>
<p>&nbsp;将上面生成的公钥文件,中的内容,全部复制到 输入框中</p>
<p><img src="https://img-blog.csdnimg.cn/f092b991f03a415aa46d1886e201de15.png" alt="" width="1066" height="421"></p>
<p>&nbsp;点击确定 后,成功绑定</p>
<p><img src="https://img-blog.csdnimg.cn/cfd9218ada87427a83b2d512bca1e8a0.png" alt="" width="1101" height="258"></p>
<p>&nbsp;3. 下载 插件&nbsp;obsidian-git</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; 地址:denolehov/obsidian-git: Backup your Obsidian.md vault with git (github.com)</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="https://img-blog.csdnimg.cn/175175fb432c410ab06acb425309eb29.png" alt="" width="369" height="141"></p>
<p>&nbsp;<img src="https://img-blog.csdnimg.cn/e870d1f865c848ecb753e7f1418b7145.png" alt="" width="301" height="260"></p>
<p>&nbsp;下载后解压,复制到&nbsp;Obsidian&nbsp;需要同步的工作空间中&nbsp;.obsidian\plugins 文件夹中<img src="https://img-blog.csdnimg.cn/447b470d3df44deaa3c511ca9d5844b7.png" alt="" width="534" height="144"></p>
<p>&nbsp;4. 重新启动&nbsp;Obsidian ,打开刚才的 工作空间</p>
<p>5. 下载 git&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(28条消息) Git 的下载与安装_fengzhx0820的博客-CSDN博客_git下载</p>
<p>6. 在 文件资源器中 打开目录</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; 右键,选择 git bash,<img src="https://img-blog.csdnimg.cn/c760c1df445a4a80a776b2e966fb1867.png" alt="" width="255" height="35"></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;输入 git init</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; 输入 git remote add &nbsp;git@gitee.com:~~~.git</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; 输入&nbsp;git pull origin</p>
<p>&nbsp; &nbsp;7.&nbsp; 配置&nbsp; obsidian git</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="https://img-blog.csdnimg.cn/988b8b5064f4424387b3cd68ba77a918.png" alt="" width="432" height="322"></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>参考博文:</p>
<p>(28条消息) 【每周一个小技能】Obsidian配合Git实现笔记自动同步_默默走开的博客-CSDN博客_obsidian git</p>
<p>Obsidian用Git同步笔记_git_xieyan0811-DevPress官方社区 (csdn.net)</p><br><br>
来源:https://www.cnblogs.com/ko25891wan/p/17467948.html
頁: [1]
查看完整版本: 使用 Obsidian + gitee 实现备份