https://community.home-assistant.io/t/sharing-your-configuration-on-github/195144
git init
git config user.email "dave-parsons@comcast.net"
git config user.name "David Parsons"
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/dave-parsons/hasmaster homeassistant configuration
git push -u origin master
In HA Terminal
git config core.sshCommand 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i /config/.ssh/id_rsa -F /dev/null'
Homeassistant Shell Command for automation
pushgithubupdates: '/bin/bash pushgithubupdates.sh'
Git Config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
sshCommand = ssh -i /root/config/.ssh/id_rsa -F /dev/null
[user]
email = dave-parsons@comcast.net
name = David Parsons
[remote "origin"]
url = git@github.com:dave-parsons/homeassistant_config.git
fetch = +refs/heads/*:refs/remotes/origin/*
git rm -rf –cached .