git fetch origin <branch> only sets FETCH_HEAD, so the silent checkout
failure left commits on the wrong ref and the push failed. Fetch into
refs/remotes/origin/<branch> and checkout -B from it.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>