Doing the exact same thing using Obsidian and the obsidian-git plugin, which allows for automatic git push at a given interval. Works very well and it's very convenient to use.
Same setup here and pretty happy about it, only minor issue is the `Update time on edit` plugin creating some conflicts if I have my vault opened on two machines.