Follow these steps to get the add-on installed on your system:
The risk of complete loss is possible. Prior to starting this add-on, ensure a copy of your Home Assistant configuration files exists in the Github repository. Otherwise, your local machine configuration folder will be overwritten with an empty configuration folder and you will need to restore from a backup.
In the configuration section, set the repository field to your repository's clone URL and check if any other fields need to be customized to work with your repository. Next,
If the log doesn't end with an error, the add-on has successfully
accessed your git repository. Examples of logs you might see if
there were no errors are: [Info] Nothing has changed.,
[Info] Something has changed, checking Home-Assistant config...,
or [Info] Local configuration has changed. Restart required..
If you made it this far, you might want to let the add-on automatically
check for updates by setting the active field (a subfield of repeat)
to true and turning on "Start on boot."
git_remote (required)Name of the tracked repository. Leave this as origin if you are unsure.
git_prune (required)true/false: If set to true, the add-on will clean-up branches that are deleted on the remote repository, but still have cached entries on the local machine. Leave this as false if you are unsure.
git_branch (required)Branch name of the Git repo. If left empty, the currently checked out branch will be updated. Leave this as 'master' if you are unsure.
git_command (required)pull/reset: Command to run. Leave this as pull if you are unsure.
pull
reset
git reset --hard and overwrite any local changes to tracked files and update from the remote repository. Warning: Using reset WILL overwrite changes to tracked files. You can list all tracked files with this command: git ls-tree -r master --name-only.repository (required)Git URL to your repository (make sure to use double quotes).
auto_restart (required)true/false: Restart Home Assistant when the configuration has changed (and is valid).
restart_ignore (optional)When auto_restart is enabled, changes to these files will not make HA restart. Full directories to ignore can be specified.
repeatThe following options are for the option group: repeat and configure the Git pull add-on to poll the repository for updates periodically automatically.
repeat.active (required)true/false: Enable/disable automatic polling.
repeat.interval (required)The interval in seconds to poll the repo for if automatic polling is enabled.
deployment_user (optional)Username to use when authenticating to a repository with a username and password.
deployment_password (optional)Password to use when authenticating to a repository. Ignored if deployment_user is not set.
deployment_key (optional)A private SSH key that will be used for communication during Git operations. This key is mandatory for ssh-accessed repositories, which are the ones with the following pattern: <user>@<host>:<repository path>. This key has to be created without a passphrase.
deployment_key_protocol (optional)The key protocol. Default is rsa. Valid protocols are:
The protocol is typically known by the suffix of the private key --e.g., a key file named id_rsa will be a private key using rsa protocol.
Got questions?
You have several options to get them answered:
In case you've found a bug, please open an issue on our GitHub.
Content type
Image
Digest
sha256:f7043c884…
Size
29.8 MB
Last updated
over 1 year ago
docker pull grubertech/addon-git-pull