Can easily sync using Syncthing as well. This is how I use Obsidian.
Discussion
Sounds like a wonderful idea ! Do you any tutorial for that ?
Not really a tutorial man due to lazyness but I took notes for myself lol
https://dev.to/snazzybytes/obsidian-notes-with-git-crypt-376m
But I used android, termux, widget for it... and that #bullshit 🤣 ✊
https://github.com/snazzybytes/obsidian-scripts/tree/master/android
Chris Titus Tech is good. Once you have syncthing going, just store your Obsidian vault in a shared folder.
This guy is specific for Obsidian.
I used got crypt and wrote it up once it's somewhere. Not sure if it's the way to go but I like customizations so (this route also relies on one of the plugins, but there may be yet newer better way ill check sometime....better as in faster encrypt decrypt in case of any imagery etc)