Obsidian has a built in sync feature if you pay for it. https://obsidian.md/sync
Also, the app's really good, and I pay for Sync -- git works well, but it's a bit clumsier on iOS. Never posted a paid comment in my life.
I share the vault folder between devices with syncthing. Free and open source.