1
0
mirror of https://github.com/github/gitignore synced 2025-04-18 08:08:06 +02:00

optimize and more readable obsidian extended gitignore

This commit is contained in:
Your Name 2025-03-05 13:00:09 +01:00
parent 9d66dabafa
commit aa95d6b79a

View File

@ -30,9 +30,7 @@
# contain metadata (manifest.json), application code (main.js), stylesheets # contain metadata (manifest.json), application code (main.js), stylesheets
# (styles.css), and user-configuration data (data.json). # (styles.css), and user-configuration data (data.json).
# We only want to track data.json, so we: # We only want to track data.json, so we:
# 1. exclude everything under the plugins directory recursively, # 1. exclude everything that the plugin folders contain,
# 2. unignore the plugin directories themselves, which then allows us to # 2. unignore data.json in the plugin folders
# 3. unignore the data.json files .obsidian/plugins/*/**
.obsidian/plugins/**/*
!.obsidian/plugins/*/
!.obsidian/plugins/*/data.json !.obsidian/plugins/*/data.json