Integration to sync your HA configuration with a private Git repository

Dear Community,

I kept breaking my setup with bad YAML edits and had no easy way to see what changed or roll back. I know you can set up git manually via SSH or use add-ons, but I wanted something that lives natively inside HA — auto-commits when files change, pushes to GitHub, and gives me sensors I can use in automations.

So I built git-ha-ppens. → GitHub - manuveli/git-ha-ppens: Git Integration for Home Assistant to allow versioning your configuration · GitHub

What it does:

  • File watcher detects config changes and auto-commits after a configurable debounce interval
  • 4 services: commit, push, pull, sync — callable from automations or Developer Tools
  • Push/pull to GitHub, GitLab, Bitbucket via HTTPS token or SSH key
  • 5 sensors + 1 binary sensor for branch, last commit, uncommitted changes, remote status
  • Events for commit, push, pull, errors — useful for notifications
  • Auto-generates a .gitignore with sane HA defaults (secrets.yaml, databases, logs, .storage, etc.)
  • Scans tracked files for accidentally committed API keys or tokens
  • Full diagnostics support with automatic redaction of sensitive values

Everything is configured through the UI, no YAML config needed.

It requires git to be installed on the host, which on HA OS means you probably need the “SSH & Web Terminal” Add-on.

GitHub: GitHub - manuveli/git-ha-ppens: Git Integration for Home Assistant to allow versioning your configuration · GitHub