How to avoid keeping plugin implementation in Git?


I keep my vault in a git repository. However, I don’t like the fact that community plugins’ implementations are in my git repo too. All the scripts, stylesheets, etc. They are technically not my code and I don’t want to manage them. I created an .obsidian/.gitignore file, so only important metadata is source controlled:


However, when I cloned the repository, the plugins do not work. They are detected, but when I try to enable them, I get a popup Failed to load plugin <plugin name>.

It looks like the files are only downloaded upon installing. I think Obsidian could/should verify the integrity of plugin’s files and download them, if they are missing.

Is it possible to not sync the plugins’ code and have a working repository?