How to get GitHub working?

Hello,
Can someone help me with GitHub in the configurator ?
Is there a guide that I can follow ?
I followed this guide: https://www.home-assistant.io/docs/ecosystem/backup/backup_github/
But it only works in the SSH Server Terminals and this with the username and password.
When I want to do this in the configurator I get an error.
I do the following steps in the configurator:
Git Init
Git Commit
Git Push --> Error
Cmd(‘git’) failed due to: exit code(128)
cmdline: git push --porcelain origin
stderr: ‘fatal: could not read Username for ‘https://github.com’: No such device or address’
/config
If I want to do this in the Visual Studio Code on my laptop I get also an error.
Can someone help me with this ?
Kind regards,
Bart Engelen

1 Like

I’m getting the same error when I try to setup the official Git Pull add-in using Github. I’m using the configurator and have provided the valid URL to the .git file as well as the necessary deployment key.

[Info] Start git clone
Cloning into ‘/config’…
fatal: could not read Username for ‘https://github.com’: No such device or address
[Error] Git clone failed

Any pointers on how to get these working with GitHub?

Thanks

1 Like

There appears to be a problem accessing private GitHub repositories using deploy keys via https. Use ssh instead.

deployment_key:
  - '-----BEGIN OPENSSH PRIVATE KEY-----'
  - REDACTED
  - '-----END OPENSSH PRIVATE KEY-----'
  :
deployment_user: ''
deployment_password: ''
  :
git_branch: main  # https://github.com/github/renaming
  :
repository: '[email protected]:USERNAME/REPOSITORY.git'
  :

Another thing I learned: you should backup .storage/ (it contains user authorizations) but not home-assistant_v2.db (it will cause a conflict that makes git pull fail).