I use Obsidian for note-taking and sync my files via Apple Files. However, I noticed that Obsidian became very slow after adding a Git repository to my vault. Here’s how I fixed it by configuring the GIT_DIR
option in the Obsidian Git plugin.
## The Problem
Obsidian slowed down significantly when a a big Git repository (> 500mb ) was present in my vault. The .git
folder in the vault caused Obsidian to scan and process it, leading to delays in loading, searching, and navigating files.
You can resolve this issue by setting the GIT_DIR
in the Obsidian Git plugin to keep the .git
folder outside the vault. Here’s how:
.git
folder from your vault to a location outside the vault. For example:
mv ~/Documents/ObsidianVault/.git ~/Documents/ObsidianGit/
GIT_DIR
to the new location of your .git
folder, e.g., GIT_DIR=/Users/username/Documents/ObsidianGit/.git
..git
folder, allowing you to use Git commands normally without slowing down Obsidian.For more details, check the Obsidian forum thread.
Like this post? Follow me at @jankeesvw on Twitter