aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Hunter <thorrsson@github.com>2025-01-29 09:09:49 -1000
committerGitHub <noreply@github.com>2025-01-29 09:09:49 -1000
commit297239c101dcfdfae7e75757ed17ed993df0b4eb (patch)
treefead788c1cfef40579fbf1b8d5ea52518247439f
parentd5ac09e92f96b4fe161d6086912f50d431c38926 (diff)
parent930fa355b6ee1cea18c7cc5c5e052c3866e4ee39 (diff)
downloadgitignore-297239c101dcfdfae7e75757ed17ed993df0b4eb.tar.gz
gitignore-297239c101dcfdfae7e75757ed17ed993df0b4eb.zip
Merge pull request #4370 from chpatton013/mainHEADmain
Add Obsidian community gitignore files
-rw-r--r--community/Obsidian/NotesAndCoreConfiguration.gitignore16
-rw-r--r--community/Obsidian/NotesAndExtendedConfiguration.gitignore38
-rw-r--r--community/Obsidian/NotesOnly.gitignore4
3 files changed, 58 insertions, 0 deletions
diff --git a/community/Obsidian/NotesAndCoreConfiguration.gitignore b/community/Obsidian/NotesAndCoreConfiguration.gitignore
new file mode 100644
index 00000000..4eff01da
--- /dev/null
+++ b/community/Obsidian/NotesAndCoreConfiguration.gitignore
@@ -0,0 +1,16 @@
+# Excludes Obsidian workspace cache and plugins. All notes and core obsidian
+# configuration files are tracked by Git.
+
+# The current application UI state (DOM layout, recently-opened files, etc.) is
+# stored in these files (separate for desktop and mobile) so you can resume
+# your session seamlessly after a restart. If you want to track UI state, use
+# the Workspaces core plugin instead of relying on these files.
+.obsidian/workspace.json
+.obsidian/workspace-mobile.json
+
+# Obsidian plugins are stored under .obsidian/plugins/$plugin_name. They
+# contain metadata (manifest.json), application code (main.js), stylesheets
+# (styles.css), and user-configuration data (data.json).
+# We want to exclude all plugin-related files, so we can exclude everything
+# under this directory.
+.obsidian/plugins/**/*
diff --git a/community/Obsidian/NotesAndExtendedConfiguration.gitignore b/community/Obsidian/NotesAndExtendedConfiguration.gitignore
new file mode 100644
index 00000000..3e0804f2
--- /dev/null
+++ b/community/Obsidian/NotesAndExtendedConfiguration.gitignore
@@ -0,0 +1,38 @@
+# Excludes Obsidian workspace cache and plugin code, but retains plugin
+# configuration. All notes and user-controlled configuration files are tracked
+# by Git.
+#
+# !!! WARNING !!!
+#
+# Community plugins may store sensitive secrets in their data.json files. By
+# including these files, those secrets may be tracked in your Git repository.
+#
+# To ignore configurations for specific plugins, add a line like this after the
+# contents of this file (order is important):
+# .obsidian/plugins/{{plugin_name}}/data.json
+#
+# Alternatively, ensure that you are treating your entire Git repository as
+# sensitive data, since it may contain secrets, or may have contained them in
+# past commits. Understand your threat profile, and make the decision
+# appropriate for yourself. If in doubt, err on the side of not including
+# plugin configuration. Use one of the alternative gitignore files instead:
+# * NotesOnly.gitignore
+# * NotesAndCoreConfiguration.gitignore
+
+# The current application UI state (DOM layout, recently-opened files, etc.) is
+# stored in these files (separate for desktop and mobile) so you can resume
+# your session seamlessly after a restart. If you want to track UI state, use
+# the Workspaces core plugin instead of relying on these files.
+.obsidian/workspace.json
+.obsidian/workspace-mobile.json
+
+# Obsidian plugins are stored under .obsidian/plugins/$plugin_name. They
+# 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/*/
+!.obsidian/plugins/*/data.json
diff --git a/community/Obsidian/NotesOnly.gitignore b/community/Obsidian/NotesOnly.gitignore
new file mode 100644
index 00000000..2b3b76ee
--- /dev/null
+++ b/community/Obsidian/NotesOnly.gitignore
@@ -0,0 +1,4 @@
+# Excludes all Obsidian-related configuration. All notes are tracked by Git.
+
+# All Obsidian configuration and runtime state is stored here
+.obsidian/**/*