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 doesn
t 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?