Isn't there a script or a plugin to sync your vault to github, already?
(may be even to sync several vaults, for example to share vaults between colleagues)
Ive been surprised at how few people are interested in an obsidian browser tool, but its great if I want to read / write notes from a corporate laptop for example.