These resources are written by Freedom Lab members. Join our Freedom Lab server to be a part of the community and receive support directly.

ResourcesSync Obsidian Across Devices with GitHub

Sync Obsidian Across Devices with GitHub

Tutorial Privacy Open-source Self-hosting

Sync your Obsidian vault across Mac, Windows, and Linux using a private GitHub repository — free, open-source, and you control your data. No paid Obsidian Sync needed.

Your notes are yours. Using GitHub instead of a proprietary sync service means you own the infrastructure, every change is version-tracked, and it works on any device with Git. No subscription fees, no vendor lock-in.

Step 1 — Create a Private GitHub Repository

  1. Go to github.com/new
  2. Name it (e.g., my-obsidian-vault)
  3. Set it to Private
  4. Click Create repository

Step 2 — Set Up Your First Device (Mac or Linux)

Install Git (if not already installed):

# Mac (with Homebrew)
brew install git

# Linux (Debian/Ubuntu)
sudo apt install git

Clone the repo:

cd ~
git clone https://github.com/YOUR-USERNAME/my-obsidian-vault.git

Open as Obsidian vault:

  1. Open Obsidian
  2. Click "Open folder as vault"
  3. Select the cloned folder

Step 3 — Install the Obsidian Git Plugin

  1. In Obsidian, go to Settings → Community plugins
  2. Turn off Restricted mode if prompted
  3. Click Browse → search for "Obsidian Git"
  4. Install it, then Enable it

Step 4 — Configure Auto-Sync

Go to Settings → Obsidian Git and set:

Step 5 — Set Up Your Second Device

Install Git:

Clone the repo (open terminal or Command Prompt):

git clone https://github.com/YOUR-USERNAME/my-obsidian-vault.git

Set your Git identity (first time only):

git config --global user.name "Your Name"
git config --global user.email "your-github-email@example.com"

Open in Obsidian → "Open folder as vault" → select the cloned folder.

Install the Obsidian Git plugin (same as Step 3).

Step 6 — Test the Sync

  1. Create a test note on Device A
  2. Wait for the auto-push interval (or use Command Palette → "Obsidian Git: Push")
  3. On Device B, wait for auto-pull (or manually pull)
  4. The note should appear

Gotchas & Tips

What You've Built

Your Obsidian Vault
    │
    ├── Private GitHub Repo (you control it)
    │     └── Full version history of every edit
    │
    ├── Device A (Mac / Linux / Windows)
    │     └── Auto-sync every 2 minutes
    │
    └── Device B (any other machine)
          └── Auto-sync every 2 minutes

A free, self-sovereign note sync system. Your notes live in a Git repo you control, changes sync automatically, full version history of every edit, works on any device that runs Obsidian + Git. No subscription fees, no vendor lock-in.