so I have a git repo that I had made commits and pushed the repo to the server. Then I rolled back a few commits with git revert to a previous commit on local. Now when I try to push to the server I get the error
hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
I understand that I reverted on my local branch, so now the remote branch has commits that aren't on the local branch. I just want to also remove those commits on the server. I just want to be able to push my local branch the way it is and "replace" the head on the server. How do I do that? I don't want to pull the changes from the server since I want to trash those anyways.