From aa95d6b79a275f8db58bb4433a862bdfe02d8bb9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 5 Mar 2025 13:00:09 +0100 Subject: [PATCH] optimize and more readable obsidian extended gitignore --- .../Obsidian/NotesAndExtendedConfiguration.gitignore | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/community/Obsidian/NotesAndExtendedConfiguration.gitignore b/community/Obsidian/NotesAndExtendedConfiguration.gitignore index 3e0804f2..58c3f71e 100644 --- a/community/Obsidian/NotesAndExtendedConfiguration.gitignore +++ b/community/Obsidian/NotesAndExtendedConfiguration.gitignore @@ -30,9 +30,7 @@ # contain metadata (manifest.json), application code (main.js), stylesheets # (styles.css), and user-configuration data (data.json). # We only want to track data.json, so we: -# 1. exclude everything under the plugins directory recursively, -# 2. unignore the plugin directories themselves, which then allows us to -# 3. unignore the data.json files -.obsidian/plugins/**/* -!.obsidian/plugins/*/ +# 1. exclude everything that the plugin folders contain, +# 2. unignore data.json in the plugin folders +.obsidian/plugins/*/** !.obsidian/plugins/*/data.json