How to synchronize Obsidian vault using git on iOS

Obsidian is a great Markdown editor with many plugins. I tried Joplin, but their iOS app just doesn’t cut it for me. Anyway, one obstacle when using Obsidian is synchronization. Obsidian offers paid service for $4/mo to synchronize the vault. However, they don’t provide API to access the synchronized data programmatically. The lack of API support is a deal breaker for my use case.