I have a build step in Team City which generates documentation which I want to commit with git and then push to GitHub.
I am using ssh to connect to GitHub and doing the following:
git add .
git commit -m "Update docs"
git push origin refs/heads/localbranch:refs/heads/remotebranch
I am getting:
Host key verification failed.
fatal: Could not read from remote repository.
Should this approach work or do I need to try something else?