Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

obsidian-git

> 开发工具
Open source

Integrate Git version control with automatic commit-and-sync and other advanced features in Obsidian.md

11.7K stars0 likes0 views
WebsiteGitHub

About

Integrate Git version control with automatic commit-and-sync and other advanced features in Obsidian.md

Obsidian Git Plugin

A powerful community plugin for Obsidian.md that brings Git integration right into your vault. Automatically commit, pull, push, and see your changes — all within Obsidian.

Documentation

All setup instructions (including mobile), common issues, tips, and advanced configuration can be found in the full documentation.

Mobile users: The plugin is highly unstable ⚠️ ! Please check the dedicated Mobile section below.

Key Features

  • Automatic commit-and-sync (commit, pull, and push) on a schedule.
  • Auto-pull on Obsidian startup
  • Submodule support for managing multiple repositories (desktop only and opt-in)
  • Source Control View to stage/unstage, commit and diff files - Open it with the Open source control view command.
  • History View for browsing commit logs and changed files - Open it with the Open history view command.
  • Diff View for viewing changes in a file - Open it with the Open diff view command.
  • Signs in the editor to indicate added, modified, and deleted lines/hunks (desktop only).
  • GitHub integration to open files and history in your browser

For detailed file history, consider pairing this plugin with the Version History Diff plugin.

UI Previews

Source Control View

Manage your file changes directly inside Obsidian, including staging and unstaging individual files and committing them. The main Commit action commits staged changes when present. If nothing is staged, the Stage all changes when nothing is staged setting determines whether all changes are staged and committed. The actions menu provides explicit staged-only and all-changes alternatives, plus amending the previous commit on desktop.

History View

Show the commit history of your repository. The commit message, author, date, and changed files can be shown. Author and date are disabled by default as shown in the screenshot, but can be enabled in the settings.

Diff View

Compare versions with a clear and concise diff viewer. Open it from the source control view or via the Open diff view command.

Signs in the Editor

View line-by-line changes directly in the editor with added, modified, and deleted line/hunk indicators. You can stage and reset changes right from the signs. There also commands to navigate between hunks and stage/reset hunks under the cursor. Needs to be enabled in the plugin settings.

Available Commands

Not exhaustive - these are just some of the most common commands. For a full list, see the Command Palette in Obsidian.

  • Changes
  • List changed files: Lists all changes in a modal
  • Open diff view: Open diff view for the current file
  • Stage current file
  • Unstage current file
  • Discard all changes: Discard all changes in the repository
  • ✅ Commit
    • Commit: Commits staged changes when present. If nothing is staged, either stages and commits all changes or stops, depending on the Stage all changes when nothing is staged setting
    • Commit with specific message: Same as above, but with a custom message
    • Commit all changes: Commits all changes without pushing
    • Commit all changes with specific message: Same as above, but with a custom message
  • Commit-and-sync
  • Commit-and-sync: With default settings, this will commit all changes, pull, and push
  • Commit-and-sync with specific message: Same as above, but with a custom message
  • Commit-and-sync and close: Same as Commit-and-sync, but if running on desktop, will close the Obsidian window. Will not exit Obsidian app on mobile.
  • Remote
  • Push, Pull
  • Edit remotes: Add new remotes or edit existing remotes
  • Remove remote
  • Clone an existing remote repo: Opens dialog that will prompt for URL and authentication to clone a remote repo
  • Open file on GitHub: Open the file view of the current file on GitHub in a browser window. Note: only works on desktop
  • Open file history on GitHub: Open the file history of the current file on GitHub in a browser window. Note: only works on desktop
  • Manage local repository
  • Initialize a new repo
  • Create new branch
  • Delete branch
  • CAUTION: Delete repository
  • Miscellaneous
  • Open source control view: Opens side pane displaying Source control view
  • Open history view: Opens side pane displaying History view
  • Edit .gitignore
  • Add file to .gitignore: Add current file to .gitignore

Desktop Notes

Authentication

Some Git services may require further setup for HTTPS/SSH authentication. Refer to the Authentication Guide

Obsidian on Linux

  • ⚠️ Snap is not supported due to its sandboxing restrictions.
  • ⚠️ Flatpak is not recommended, because it doesn't have access to all system files. They are actively fixing many issues, but there are still issues. Especially with more advanced setups.
  • ✅ Please use AppImage or a full access installation of your system's package manager instead (Linux installation guide)

Mobile Support (⚠️ Experimental)

The Git implementation on mobile is very unstable! I would not recommend using this plugin on mobile, but try other syncing services.

One such alternative is GitSync, which is available on both Android and iOS. It is not associated with this plugin, but it may be a better option for mobile users. A tutorial for setting it up can be found here.

The Git plugin works on mobile thanks to isomorphic-git, a JavaScript-based re-implementation of Git - but it comes with serious limitations and issues. It is not possible for an Obsidian plugin to use a native Git installation on Android or iOS.

❌ Mobile Feature Limitations

  • No SSH authentication (isomorphic-git issue)
  • Limited repo size, because of memory restrictions
  • No rebase merge strategy
  • No submodules support

⚠️ Performance Caveats

[!caution] Depending on your device and available free RAM, Obsidian may

  • crash on clone/pull
  • create buffer overflow errors
  • run indefinitely.

It's caused by the underlying git implementation on mobile, which is not efficient. I don't know how to fix this. If that's the case for you, I have to admit this plugin won't work for you. So commenting on any issue or creating a new one won't help. I am sorry.

Tips for Mobile Use:

If you have a large repo/vault I recommend to stage individual files and only commit staged files.

Contact & Credits

  • The Line Authoring feature was developed by GollyTicker, so any questions may be best answered by her.
  • This plugin was initial developed by denolehov. Since March 2021, it's me Vinzent03 who is developing this plugin. That's why the GitHub repository got moved to my account in July 2024.
  • If you have any kind of feedback or questions, feel free to reach out via GitHub issues.

☕ Support

If you find this plugin useful and would like to support its development, you can support me on Ko-fi.

Issues· 137 open

View all issuesOpen on GitHub
  • #1185

    Feature Request: Show Timeout before next auto-commit in the status bar

    Updated Sep 28, 2026
  • #1184

    [Bug]: Mobile pull reports a false merge conflict on a fast-forward (isomorphic-git findMergeBase bug, fixed in 1.42.0)

    Updated Sep 26, 2026
  • #1170

    Better feedback for longer operations triggered by the user

    Updated Sep 19, 2026
  • #1172

    [Bug]: Obsidian Git should not list/stage/commit files outside the vault

    bugUpdated Sep 18, 2026
  • #1179

    [Bug]: Pulling causes reverse changes

    bugUpdated Sep 17, 2026
  • #1012

    [Bug]: IOS Infinite Loop: "Couldn't find master" after cloning, and "Switch branch" fails to resolve it

    bugUpdated Sep 16, 2026
  • #1168

    [Bug]: Git plugin reports that git is not found, but I can use git normally in the command line. What is the reason?

    bugUpdated Sep 14, 2026
  • #1177

    [Bug]: JavaScript error "ed is not defined" on pull on Android

    bugUpdated Sep 13, 2026
  • #1176

    In-editor merge conflict resolution?

    Updated Sep 12, 2026
  • #773

    [Enhancement]: Add support for Multi Repos

    Updated Sep 10, 2026

> Tags

TypeScriptgitobsidianobsidian-mdobsidian-plugin

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具