Files
nexus/wiki/concepts/Obsidian-Git.md
2026-05-03 05:42:12 +08:00

1.4 KiB
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
Obsidian Git concept
tool
obsidian
version-control
git
karpathy-最新分享-用-llm-搭建个人知识库-告别-rag-的低效循环
2026-04-20

Aliases

  • Obsidian Git 插件
  • Obsidian Git 扩展

Definition

Obsidian 的社区插件,为 Vault 提供 Git 版本管理功能,支持自动 commit + push 到远程仓库。是 LLM Wiki 的必选项——AI 批量改文件的能力越强,越需要版本管理来兜底。

Setup Steps

  1. 设置 → 第三方插件 → 社区插件市场 → 搜索 "git" → 安装并启用
  2. 如果 Vault 还不是 Git 仓库:
    git init
    git remote add origin https://github.com/用户名/knowledge-bases.git
    git branch -M main
    git add .
    git commit -m "init: 初始化知识库"
    git push -u origin main
    
  3. 在 Obsidian Git 插件设置中,将 Auto commit-and-sync interval 设为 10 分钟

Value for LLM Wiki

  • 实时备份 + 完整历史:每隔几分钟插件自动 commit + push完全无需手动操作
  • 版本兜底AI 批量修改多个文件时,可随时回滚到任意历史版本
  • 多设备同步:通过 GitHub 实现跨设备同步

Note

建议创建私有仓库Private Repository知识库内容属于私人数据。

Connections