I’m trying to figure out the best way to manage my Obsidian configuration across multiple devices using GitHub.
I have my entire vault tracked as a GitHub repository. My goal is to quickly restore my existing setup whenever I switch devices. This would involve tracking the .obsidian directory, specifically the .obsidian/plugins folder.
My main concern is whether tracking the .obsidian directory might leak any personal or sensitive information.
Is it safe to track the .obsidian folder? Or is there a different method I should use to restore my configuration quickly after switching devices?
Based on what I’ve found, I think I’ve got a clearer idea now.
I’ve looked through the folders for the plugins I have installed, which include:
obsidian-image-auto-upload-plugin
floating-toc
obsidian-linter
file-tree-alternative
obsidian-auto-link-title
obsidian-git
It looks like data.json is the only file that holds my specific settings, while the rest are more for the plugin itself. As long as I don’t store any sensitive information like API keys or credentials within the plugin settings, I don’t think there’s a risk of a data leak.
So, I feel confident tracking the .obsidian folder. I’ll just be sure to add workspace* files to my .gitignore, as those only store my window layout and aren’t essential to the overall configuration.