Skip to content
Logo

obsidian-git

Every vault ships with the obsidian-git community plugin installed and enabled. While Obsidian is open, it commits your changes and syncs them with the brain's git remote (GitHub or Cloudflare Artifacts). Changes your agent pushes from another machine show up in Obsidian without a manual git pull.

Default settings

The plugin's settings live in .obsidian/plugins/obsidian-git/data.json:

SettingValueWhat it does
Auto commit-and-sync interval5 minutesCommits every change, then pulls and pushes
Auto commit after file changeonThe 5-minute timer starts after you stop editing
Auto pull interval5 minutesPulls from the remote
Pull on startuponPulls when Obsidian opens the vault
Pull before pushonAvoids rejected pushes
Sync methodrebaseKeeps history linear
Commit messagevault backup: {{date}}Used for automatic commits

Change any of these in Settings → Community plugins → Git.

Authentication

On desktop, obsidian-git uses the vault's own git config, so it works wherever git push works in a terminal:

  • GitHub: your usual git credentials (gh auth login sets these up).
  • Cloudflare Artifacts: the token setup saves in .git/config. It lasts 90 days. When pushes start failing, run csb git-token.

On iPhone and iPad

obsidian-git does run on mobile, but its author describes mobile support as very unstable, and it can't use the rebase sync method the vault ships with (switch to Merge under Settings → Git if you try it). For phones and tablets, use iCloud sync instead, and turn on Disable on this device under Settings → Git → Advanced on the phone. That setting is stored per device.

Working alongside your agent

Your agent and obsidian-git commit to the same repository. That's fine as long as both pull before they push, which obsidian-git does by default. /brain-ingest commits each ingest on its own but doesn't push, so obsidian-git's next sync pushes it. Other skills don't commit, so obsidian-git's automatic commits pick up their edits.

  • After an ingest, wait for obsidian-git's next sync, or push from the agent's session.
  • If a rebase stops on a conflict, obsidian-git shows an error notice. Fix it in a terminal (git status, resolve, git rebase --continue), or ask your agent to do it.

Turn it off

To sync by hand instead, disable Git in Settings → Community plugins. Or keep it on and set the intervals to 0, then use the command palette (Git: Commit-and-sync) when you want.