Initialize the config git repository
git_git_init_configInitialize a Git repository in the Home Assistant config directory, creating a default .gitignore and initial commit to prepare for other git tools.
Instructions
Initialize a git repository in the HA config directory.
Creates a git repo at HA_CONFIG_PATH via git.Repo.init unless a .git/
directory already exists there, writes a default .gitignore
(secrets.yaml, .storage/, .db, home-assistant.log) when none exists,
and makes one initial commit adding that .gitignore.
Use when: preparing /config before using any other git_* tool or
git_safe_write_with_checkpoint for the first time.
Returns: dict {"status": "initialized"|"already_initialized", "path": ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||