Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Dirty Tree Warning

Top Tier Content22 downloads

Warn when quitting if the vault's Git working tree has uncommitted changes.

Add to Obsidian
Dirty Tree Warning screenshot
  • Overview
  • Scorecard
  • Updates1

A large, hard-to-miss warning when you quit Obsidian with uncommitted Git changes in your vault.

The Dirty Tree Warning message

What it does

If your vault is a Git repository, this plugin checks the Git working tree when you close Obsidian.

  • Uncommitted changes: a large message appears, reading DIRTY TREE! CLEAN YOUR REPO. Obsidian then finishes closing on its own a few seconds later.
  • Clean working tree, or a vault that isn't in a Git repository: Obsidian closes normally. Nothing is shown.

The warning follows your active Obsidian theme.

It doesn't stop Obsidian from closing. It's a reminder, not a lock. If you see it, open the vault in a terminal and commit (or otherwise clean up) your changes.

Commands

Open the command palette (Ctrl+P / Cmd+P) and search for Dirty Tree Warning:

Command What it does
Preview warning Shows the warning without closing Obsidian, so you can see how it looks. Press Esc to dismiss it.
Check working tree now Shows a short notice saying whether the working tree is clean or has uncommitted changes.

No hotkeys are set. You can assign your own in Settings → Hotkeys.

Requirements

  • Obsidian on desktop (Windows, macOS or Linux). Mobile isn't supported.
  • Git installed and available as git on your system path.
  • A vault that is inside a Git repository.

Files ignored by your .gitignore don't count as changes. If you don't want Obsidian's own settings folder to trigger the warning, add .obsidian/ to your .gitignore.

Disclosures

  • Runs a local program: the plugin runs the git executable (git status --porcelain) in your vault folder when you close Obsidian, and when you use Check working tree now.
  • Reads files outside the vault: Git may read repository data (the .git folder) that lives outside the vault, for example when the vault is a subfolder of a larger repository.
  • No network access: nothing is sent anywhere. The plugin makes no network requests.
  • Changes nothing: the plugin never commits, stages or modifies files.
  • Desktop only.

Installation

In Obsidian: Settings → Community plugins → Browse, search for Dirty Tree Warning, then select Install and Enable.

Support and maintenance

This plugin is provided as is. It works for its author, and it's shared in the hope that it's useful to others.

  • No support is offered, and there's no way to contact the author about it.
  • No updates or fixes are planned.
  • Issues and contributions aren't accepted.

If it doesn't work for you, or you'd like it to behave differently, you're welcome to modify it under the terms of the license below.

License

Copyright (C) 2026 Top Tier Content

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version (GPL-3.0-or-later). See LICENSE.

If you distribute a modified version, keep the copyright notice above and credit Top Tier Content as the original author, as the license requires.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

HealthGood
ReviewSatisfactory
About
Display a large, theme-matched warning when quitting Obsidian if your vault's Git working tree has uncommitted changes, then let Obsidian finish closing after a few seconds. Treat the alert as a reminder (not a lock) and use commands to preview the warning or check the working tree status on demand. Requires Git and a vault inside a Git repository. Desktop only. Runs "git status" locally; no network access, and it never modifies files.
GitCommands
Details
Current version
1.0.0
Last updated
2 weeks ago
Created
2 weeks ago
Updates
1 release
Downloads
22
Compatible with
Obsidian 1.5.0+
Platforms
Desktop only
License
GPL-3.0
Report bugRequest featureReport plugin
Author
Top Tier Contenttop-tier-content
top-tier-content.github.io/dirty-tree-warning/
  1. Community
  2. Plugins
  3. Git
  4. Dirty Tree Warning

Related plugins

Open in Terminal

Open your vault in a new terminal window or launch Claude Code, Codex CLI, or Gemini CLI directly from a terminal.

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.

Copilot

Run AI agents such as Claude Code, Codex, and OpenCode inside your vault. Turn your second brain into a smart assistant that gets knowledge work done.

Note Toolbar

Add customizable toolbars to your notes.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Git

Integrate Git version control with automatic backup and other advanced features.

Tab Switcher

Switch your tabs with Ctrl + Tab in recently used order like in a browser.

Commander

Customize your workspace by adding commands everywhere, create macros and supercharge your mobile toolbar.

Fit

Minimalist File gIT (FIT) to sync your files across mobile and desktop devices using GitHub.

Lean Terminal

Embedded terminal panel powered by xterm.js and node-pty - no external windows.