Short version
  1. Day to day you need three commands: Git: Commit-and-sync, Git: Pull and Git: Open source control view.
  2. Most errors on desktop are Git not being found (set Custom Git binary path) or authentication.
  3. On a phone the plugin uses a different Git implementation with no SSH and a documented crash risk. It suits small HTTPS vaults.

What the Obsidian Git plugin does

The Obsidian Git community plugin runs Git for your vault: commit, pull and push, plus a source control view, a history view and a diff view. Its docs use commit-and-sync for the whole routine: stage, commit, pull, then push. The older name for it was “backup”, which the docs now mark as no longer in use.

Git suits asynchronous editing: you change a note on one device, commit, and pick the change up on another. It isn’t live co-editing, so two devices editing the same lines between syncs produce a conflict.

Install and first repo

Install it from Settings → Community plugins → Browse, as described in Obsidian’s help. There are three ways to start, from the plugin’s Getting Started page:

  • You already have a repository. If the vault folder is a Git repository, the plugin uses it.
  • New repository. Run Git: Initialize a new repo, make a first commit with Git: Commit all changes, set up authentication, then push to a remote named origin.
  • Clone. Git: Clone an existing remote repo exists, but the docs note that Git can only clone into a new folder. Clone into a subfolder of the vault and move the files up, open the subfolder as its own vault, or run git clone in a terminal where you want the vault.

For the full walkthrough with GitHub, including the repository, authentication and phone setup, follow Sync Obsidian with GitHub on every device. This page doesn’t repeat it.

Commands you’ll actually use

Open the command palette and type Git. These names come from the plugin’s source:

Obsidian Git command palette entries
CommandWhat it does
Commit-and-syncStages and commits, then pulls and pushes, depending on your Pull on commit-and-sync and Push on commit-and-sync settings.
Commit-and-sync with specific messageThe same routine, but you type the commit message.
PullBrings in remote changes.
PushPushes your commits without committing first.
Commit all changesCommits everything, with no pull or push.
Commit stagedCommits only what you staged.
Open source control viewOpens the panel for staging, committing and viewing changes.
Open history viewOpens the commit log.
Open diff viewShows the changes in the current file.
Initialize a new repoRuns git init in the vault.
Clone an existing remote repoClones a remote. See the empty-folder note above.
Edit .gitignoreOpens the vault’s .gitignore. See what to put in it.
Add file to .gitignoreAdds the current file to .gitignore.
Pause/Resume automatic routinesStops or restarts the scheduled commit, pull and push.

There are more, including branch commands, Edit remotes, Fetch and two marked CAUTION (Delete repository and Discard all changes). Read those names twice before running them.

Views: source control, history, diff and line authoring

  • Source control view lists changed files so you can stage, unstage, discard and commit them.
  • History view shows the commit log. Its settings let you show the author as full name or initials and show the date.
  • Diff view compares versions of a file. The settings offer split or unified style (marked desktop in the plugin’s settings).
  • Line authoring shows who last changed each line, based on git blame. The docs say only Obsidian on desktop is supported, and it works in Live Preview and Source mode, not Reading mode. Toggle it with Git: Toggle line author information.

Settings explained by job

Instead of every toggle, here are the ones that decide how the plugin behaves, grouped by what you want. The names follow the plugin’s current settings code. For recommended values, see the settings table in the GitHub guide.

Sync on a schedule

  • Auto commit interval (minutes): commits on a timer. 0 turns it off. With separate intervals off, the label reads “commit-and-sync”, and the timer also pulls and pushes.
  • Auto commit-and-sync after stopping file edits: waits until you stop typing. It needs a non-zero interval.
  • Use separate commit and push intervals: adds Auto push interval (minutes).
  • Pause/Resume automatic routines: a command, for when you want a quiet hour.

Pulling

  • Pull on startup: pulls when Obsidian opens.
  • Auto pull interval (minutes): pulls on its own timer.
  • Pull on commit-and-sync and Push on commit-and-sync: turn off pushing and commit-and-sync becomes a local commit.
  • Merge strategy: Merge, Rebase, or Other sync service (update HEAD only). Marked desktop in the settings, and the README lists no rebase on mobile.
  • Merge strategy on conflicts: None (Git default), Our changes or Their changes.

Commit messages

  • Commit message on auto commit-and-sync and Commit message on manual commit accept placeholders such as {{date}} and {{hostname}}.
  • {{date}} placeholder format takes a Moment.js format; {{hostname}} placeholder replacement sets a short name for this device.
  • Preview commit message shows the result before you rely on it.

Per device (Advanced)

  • Disable on this device: turns the plugin off on one device. The setting is not synced, so other devices keep their own.
  • Custom Git binary path (desktop): where to find Git if it isn’t on your PATH. See the error table below.
  • Additional PATH environment variable paths (desktop): extra folders for Git to search.
  • Repository folder within the vault: use it if the repository isn’t at the vault root.
  • Username on your Git server and Git server password or access token appear on mobile.

Desktop vs mobile

Other community plugins can sync a vault with GitHub too; see how Obsidian Git compares with them, by engine and mobile support.

The README calls mobile support experimental and says the Git implementation on mobile is very unstable. On mobile the plugin can’t run a native Git program. It uses isomorphic-git, a JavaScript implementation, so some features are missing.

Obsidian Git plugin: desktop vs mobile
CapabilityDesktopMobile
Git implementationYour installed Gitisomorphic-git (JavaScript)
SSH authenticationYes, through your Git setupNo
AuthenticationCredential helper or SSH key; see the authentication pageUsername and personal access token in the plugin’s settings
Rebase merge strategyYesNo
SubmodulesOpt-inNo
Repository sizeNo plugin limit documentedLimited by memory
Line authoringYesNo (desktop only)
StabilityNormalDocs warn of crashes on clone or pull, buffer overflow errors, or running indefinitely, depending on device and free RAM

On a phone, authenticate with a GitHub personal access token. The GitHub token link builder pre-fills a least-privilege one, and Obsidian Git on iPhone: token setup covers the iPhone steps.

Error messages and fixes

These are the problems the plugin’s Common issues page lists, with strings quoted as it gives them.

Obsidian Git errors and fixes
What you seeCauseFix
xcrun: error: invalid developer pathmacOS without the command line developer tools.Run xcode-select --install in Terminal.
Cannot run Git command, or an error ending in git ENOENTThe plugin can’t find Git.Check Git is installed. If it is, set Custom Git binary path in the plugin’s Advanced settings. Find the path with where git on Windows or which git on Linux and macOS.
Pulling or pushing never finishes, with no errorUsually authentication.See the plugin’s Authentication page. On a phone, check the token first.
Bad owner or permissions on /home/<user>/.ssh/configSSH rejects the config file’s permissions.Run chmod 600 ~/.ssh/config.
Files in .gitignore are still trackedAlready committed or staged files stay tracked.Run git rm --cached <file>, check git status lists it as deleted, then commit. See the .gitignore guide and the .gitignore generator.
error: cannot run gpg: No such file or directory, error: gpg failed to sign the data, fatal: failed to write commit objectCommit signing is on, but gpg can’t run.See the GPG Signing section of Integration with other tools.
This repository is configured for Git LFS but 'git-lfs' was not found on your path.The repository uses Git LFS and the plugin’s Git can’t find git-lfs.See the Git Large File Storage section of the same integration page. For LFS on iPhone, see Git LFS on iPhone and iPad.
Merge conflictsTwo devices changed the same lines.The plugin’s Conflict resolution page explains how to finish a merge in Obsidian. See also resolving conflicts on iPhone and the Markdown diff tool.

Phone-specific problems, such as a missing repository or token errors, are in Obsidian Git not working on iPhone.

When to use a native Git app on your phone instead

The plugin is the right tool on desktop. On a phone it can be enough for a small vault over HTTPS. A native Git client is the better choice when the vault is large, the remote needs SSH, or Obsidian crashes during clone or pull. The plugin’s own docs say that if mobile crashes happen to you, the plugin won’t work for you.

Obsidian Git on iOS: options and setup, including GitSync.md on iPhone and iPad (iOS and iPadOS 17 or later) and on Android (Android 9 or later) does Git natively over HTTPS or SSH, in the folder Obsidian opens. GitSync.md Connect (needs GitSync.md 2.8.0 or later) passes a GitHub sign-in to the plugin for HTTPS vaults. It doesn’t lift the plugin’s mobile limits.

If GitSync.md handles Git on the phone, turn on Disable on this device in the plugin there, so two Git clients don’t work on the same folder. GitSync.md is not the open-source “GitSync” app the plugin’s README may mention; see GitSync vs GitSync.md. To weigh Git against Obsidian’s own service, read Obsidian Sync vs Git.

GitSync.md is free to download, with a one-time $9.99 unlock to add a vault (local prices vary): App Store · Google Play.

FAQ

Is the Obsidian Git plugin free?

The plugin is a free community plugin, and Git itself is free. Your Git host’s plans are separate.

Does it work on iPhone?

Yes, with limits. The README marks mobile support experimental. It can work for a small vault over HTTPS and may crash on larger ones.

Does it support SSH on mobile?

No. The README lists no SSH authentication on mobile. Use HTTPS with a personal access token, or a native Git client.

Why does it keep pulling or pushing forever?

The docs say infinite pulling or pushing with no error is usually an authentication problem. On mobile, the docs also list running indefinitely among the performance problems.

Can I use it with GitLab?

Git works with any remote, so yes. See Sync Obsidian with GitLab for tokens and host keys.

Details checked

Checked November 25, 2026. The newest plugin release listed on GitHub was 2.44.0. Command and setting names come from the plugin’s source code on its main branch, which may be ahead of your installed version, and the error strings and mobile limits from the plugin’s README and documentation. The recommended values in the GitHub guide were written against release 2.43.0. Plugin behavior is the plugin author’s to change, so check the plugin docs if something differs.