I’ve got a couple of git repositories stored with my Obsidian Vault for programming projects I’m working on. This is great to manage markdown files and link in/out of these projects, but an issue when Obsidian sync and git get into fights.
Proposed solution
Detect a .git within a folder, and don’t sync that folder or any sub-folders. Probably opt-in.
Current workaround (optional)
Manually excluding folders. This is possible, but I haven’t found a good way to automate… Potentially some fancy trick with gnustow or similar.
Obsidian Sync ignores all hidden files and folders except for the settings .obsidian one. I’ve had a .git directory in my vault the entire time using Obsidian Sync (~4.5 years now) without issue.