Whose Error Is It?
Git printed this
error: failed to push some refs to 'origin'
What it meansGit refused to update one or more branches on the remote, usually because the remote has commits your local branch does not have.
The first thing to checkRun git pull --rebase to integrate the remote commits, resolve any conflicts, then push again; read the hint lines above for the exact reason.