Obsidian plugin · by Top Tier Content

Dirty Tree Warning

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

The Dirty Tree Warning message in Obsidian: DIRTY TREE! CLEAN YOUR REPO

What it does

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

The warning follows your active Obsidian theme. It's a reminder, not a lock: it doesn't stop Obsidian from closing.

Commands

Open the command palette and search for Dirty Tree Warning.

CommandWhat it does
Preview warningShows the warning without closing Obsidian. Press Esc to dismiss it.
Check working tree nowShows 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

Files ignored by your .gitignore don't count as changes. To keep Obsidian's own settings folder from triggering the warning, add .obsidian/ to your .gitignore.

Disclosures

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.

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.

License

Copyright © 2026 Top Tier Content. Released under the GNU General Public License, version 3 or (at your option) any later version (GPL-3.0-or-later).

You may use, study, modify and share it. If you distribute a modified version, keep the copyright notice and credit Top Tier Content as the original author, as the license requires. It comes with no warranty.

Source code: github.com/Top-Tier-Content/dirty-tree-warning