← Back to Writing & Office

Obsidian Git

Obsidian Git integration plugin handling auto-commit, sync, source control, history views, diffs, and conflict resolution inside your vault.

Writing & OfficeFreeGlobal

At a Glance & Reviews

PricingFree
OriginGlobal

About Obsidian Git

Obsidian Git is a community plugin that integrates Git version control into Obsidian: without leaving the note interface, you can commit, pull, and push, as well as automatically run commit-and-sync on a schedule, giving your vault a full version history and making it easy to sync across multiple devices. The plugin is free and open-source under the MIT license.

Key Features

· Automatic Commit and Sync: Automatically execute commit, pull, and push at configured intervals; you can also configure it to automatically pull when Obsidian starts up.

· Source Control View: Stage or unstage files, commit changes, and view diffs; the main commit button commits staged changes, and on desktop you can also amend the last commit.

· History View: Browse the commit log and the files involved in each change, with options in settings to display the author and date.

· Diff View: View highlighted changes side by side, with the ability to stage or reset individual hunks.

· In-Editor Conflict Resolution: Handle merge conflicts directly in Live Preview with highlighted conflict sections and options to keep ours, theirs, or both versions; when Git includes the common ancestor (such as with merge.conflictStyle=diff3), you can also compare and keep the base version.

· Editor Signs: Highlight added, modified, and deleted lines and blocks in Live Preview, allowing you to stage or reset them in place (desktop only).

· Submodules & GitHub Integration: Optionally enable submodule management on desktop; open the current file or its history on GitHub in your browser.

Installation Guide

1. Open Obsidian → Settings → Community plugins → Browse.

2. Search for "Git", find Obsidian Git, and click Install.

3. Enable the plugin after installation completes.

4. The desktop version uses the Git installed on your system; for advanced setup such as initializing a repository and remote repository authentication, refer to the official Documentation linked in the repository README.

Usage Guide

For first-time use, first turn your vault into a Git repository using either option:

1. Create a new repository: Open the command palette and run "Initialize a new repo" to initialize a local repository.

2. Clone an existing repository: Run "Clone an existing remote repo", enter the remote repository URL in the prompt, and complete authentication.

Common Operations (all executed from the command palette; actual command names follow what the plugin displays):

1. One-Click Sync: Run "Commit-and-sync", which by default commits all changes, pulls, and pushes; to customize the commit message, use "Commit-and-sync with specific message".

2. Review Changes Before Committing: Run "Open source control view" to open the Source Control View, stage files one by one, and commit; run "Open diff view" to inspect changes in the current file side by side, or stage only specific hunks.

3. View & Browse History: Run "Open history view" to browse commit records; run "Open file on GitHub" to open the current file in your browser (desktop only).

4. Enable Automation: Configure the scheduled automatic commit-and-sync interval in plugin settings and optionally enable automatic pull on startup, eliminating the need to run commands manually during daily writing.

Notes

· Mobile support is experimental—the official documentation explicitly notes it is very unstable and not recommended for mobile use, suggesting other sync services instead. Mobile support is built on isomorphic-git: it does not support SSH authentication, the rebase merge strategy, or submodules, repository size is limited by device memory, and large repositories may crash when cloning or pulling.

· Some Git services require additional HTTPS / SSH authentication setup; see the Authentication Guide in the official documentation for details.

· On Linux, the Snap version of Obsidian is unsupported due to sandbox restrictions, and Flatpak is also not recommended; full installation via AppImage or your system package manager is advised.

Frequently Asked Questions

Is Obsidian Git free?

Yes. Obsidian Git is free to use. Check the official site for current plans and limits.

Sign in to Lumo

Sign in with a one-time code sent to your email — no password. Your saved tools will sync across your devices.

The code is only used to sign you in. We store just your email and saved list (privacy policy, in Chinese).

—

Signed in. Your saved tools sync across all your devices.

0saved
View saved tools

Send feedback

Found a mistake, missing something, or have a suggestion? Tell us.