Can not push a current stage of the local branch to the remote one when any commits were removed.

Can not push a current stage of the local branch to the remote one when any commits were removed from local. I did:

$ git reset --hard HEAD^ -- Resets a 1 commit back on my branch.
$ git push -- Pushes the stage of the local branch to the remote. It gives an error:
!rejected unstable-1.1.0 -> unstable-1.1.0 (non-fast-forward)
error: can not send some refs to https://github.com/Andrey2470T/adv_vehicles
Updates were rejected as a top of your current branch are behind its external part.

It also says to pull external changes before second attempting. But it doesnt make sense as Id reset backwards the same stage of that branch that was before deleting of the last commit. What do I need to do?

Git does its absolute best to prevent any loss of data. So there are certain combinations of actions that when you attempt them, Git blocks you from doing them unless you tell it you know what you’re doing. In this case, you can tell Git that you know what you’re doing by using git push --force instead of only git push. This tells Git to allow a “non-fast-forward” push on your remote branch.

I hope that helps!