Obsidian - Sync Vaults Between PCs with Github
Based on Josh Plunkett's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.
Obsidian vaults are plain folders and files, so syncing can be done with tools beyond Obsidian Sync.
Briefing
Keeping an Obsidian vault in sync across multiple PCs doesn’t require an always-on cloud service. Because Obsidian stores everything as a plain folder of files (including a hidden .obsidian settings folder), the vault can be backed up and synchronized using standard file-sync tools—most notably GitHub—so changes made on one machine can be pulled onto another.
The core tradeoff is straightforward: Obsidian Sync is the official, paid, subscription-based option (listed as $10/month or $96/year) and is positioned as the recommended path, especially for Apple users. But the practical appeal of Obsidian is that its local, file-based design lets users choose their own sync method. The transcript walks through several alternatives—USB drives, Google Drive, OneDrive, and SyncThing—then focuses on GitHub as a preferred approach for “live” syncing and version history.
GitHub works here because it functions as a code repository: it tracks changes, supports collaborative editing, and maintains a commit history. In practice, the vault folder is turned into a GitHub repository using GitHub Desktop. Once the repository is published, changes can be pushed from one PC to GitHub and then fetched/cloned onto another PC. The result is a near-real-time workflow where notes, folders, and content appear on the second machine as GitHub updates are pulled down.
A major advantage highlighted is auditability. GitHub’s commit history lets users inspect what changed in a specific note, including line-level differences (with removed content shown in red and additions in green). If something breaks—like a custom CSS tweak—users can browse prior commits and roll back to earlier versions.
The transcript also emphasizes the operational rule that prevents headaches: avoid opening the same vault on two computers at the same time. GitHub can handle merges, but Obsidian’s constantly changing state (such as active tabs and other session-like settings stored in the .obsidian folder) makes conflicts more likely. The recommended routine is to work on one PC, push changes to GitHub, close Obsidian, then switch to the other PC, fetch updates, open Obsidian, work, push again, and close.
Setup is presented step-by-step: install GitHub Desktop (or use git as an alternative), create or select an Obsidian vault folder, initialize it as a Git repository (adding a .git and .git attributes plus a README if desired), publish the repository (public or private), then use GitHub Desktop’s commit/push and fetch/clone features on the second PC. The workflow is framed as free for public repositories (with a stated storage allowance) and paid for private repositories, with the transcript noting private vaults may matter for copyrighted material.
Overall, GitHub-based syncing is positioned as a flexible, version-controlled alternative to Obsidian Sync—one that leverages Obsidian’s file-based vault structure while trading away the “set-and-forget” simplicity of an official sync service.
Cornell Notes
Obsidian vaults are just folders of files, including a hidden .obsidian settings directory, which makes them compatible with many sync methods. GitHub can be used as a synchronization and backup layer by turning a vault folder into a Git repository, pushing changes from one PC, and fetching them on another. GitHub’s commit history adds a practical benefit: users can see exactly what changed in a note and revert to earlier versions when something breaks. To avoid merge conflicts, the workflow should keep Obsidian closed on one machine before switching to another—don’t edit the same vault simultaneously on two PCs. The approach can be free for public repos and paid for private repos, which may matter for copyrighted content.
Why does Obsidian’s storage format make GitHub syncing possible?
What is the basic GitHub Desktop workflow for syncing a vault between two PCs?
What does GitHub’s commit history add beyond syncing?
Why does the transcript warn against opening the same vault on two computers at once?
What alternatives to GitHub are mentioned, and how do they differ?
When might private GitHub repositories matter for vault syncing?
Review Questions
- If a vault is edited on two PCs at the same time, what kinds of conflicts are most likely and why?
- How does turning an Obsidian vault folder into a Git repository change what GitHub can do with the vault?
- What specific GitHub features (beyond syncing) help with troubleshooting broken notes or custom CSS?
Key Points
- 1
Obsidian vaults are plain folders and files, so syncing can be done with tools beyond Obsidian Sync.
- 2
GitHub-based syncing works by converting the vault folder into a Git repository and using GitHub Desktop to commit/push and fetch/clone.
- 3
GitHub’s commit history provides line-level change tracking, making it easier to diagnose and roll back broken notes.
- 4
To reduce merge conflicts, avoid editing the same vault simultaneously on two PCs; push and close Obsidian before switching machines.
- 5
GitHub Desktop simplifies setup: initialize a local repository, publish it, then use commit/push on one machine and fetch/clone on another.
- 6
Public repositories can be free, while private repositories require a subscription—use private repos when vault content shouldn’t be public.