Git push problems occurred where running:
git push balena-remote my-branch:master
Counting objects: 13, done. Delta compression using up to 8 threads. Compressing objects: 100% (13/13), done. Writing objects: 100% (13/13), 1.21 KiB | 0 bytes/s, done. Total 13 (delta 11), reused 0 (delta 0) [Error] An error occurred: ESOCKETTIMEDOUT [Error] Not deploying release. remote: error: hook declined to update refs/heads/master To git.balena-cloud.com:me/my-application.git ! [remote rejected] my-branch -> master (hook declined) error: failed to push some refs to 'email@example.com:me/my-application.git'
So I tried
git push -f balena-remote my-branch:master which failed with the same errors.
But after repeated attempts to push it finally worked… and invalidated my cache (I had to rebuild everything, costing 30 minutes or so).
I think that this is caused by the -f (force) flag?
If so, what was the ESOCKETTIMEDOUT error? Do I have to remedy that with a force push or is the best strategy to just repeatedly attempt to push?