I’ve gone through so many iterations of trying to work out how to do something like this for Home Assistant config.
Do you set it up as realtime 2-way sync? And do you just exclude the .git folder from the sync to HA?
I’ve gone through so many iterations of trying to work out how to do something like this for Home Assistant config.
Do you set it up as realtime 2-way sync? And do you just exclude the .git folder from the sync to HA?
I should note I specifically use this for doing source control of configuration and making it easy to manually edit -- I have an entirely separate process for backups of the server itself.
Like you, I've also gone through several iterations but this has been working for me for almost a year now.
That said, I’m making far fewer YAML changes these days than I used to. I’m doing almost everything via their UI so maybe I need to consider how much I actually need source control now vs just having solid backups.
Originally I was against their move from YAML config to the more user friendly GUI approach but I have to admit it’s a lot easier to make quick on-the-fly changes to my automations these days. I’m begrudgingly coming around to the idea of not firing up VS Code every time I want to tweak something!
I've read of other HN'ers doing this successfully (syncing git repos between machines) but I just seem to get a lot of issues - git repos often broken temporarily, conflicts etc.
That said, I can't recall if I tried excluding node_modules when I last gave this a go. Maybe I'll try it again.