I made some changes on the hotfix branch and pushed to server. Not the API will not change and I have to reset the hotfix and origin/hotfix to a certain point in code. The locla branch can easily be reset but I am not able to push it to origin because it needs me to pull first which I don't want to do it because I want to revert (lose) those changes on origin. How can I reset my origin/hotfix to a certain point?
I used git push --force origin hotfix/1.0.4 it returns
Total 0 (delta 0), reused 0 (delta 0) remote: error: denying non-fast-forward refs/heads/hotfix/1.0.4 (you should pull first) To http://ac-git/Web.ABC.git ! [remote rejected] hotfix/1.0.4 -> hotfix/1.0.4 (non-fast-forward)
Any idea how can I reset the origin/hotfix ?