I had a problem where I want to push my branch and overwrite what was the on the server.
I kept receiving an error telling me to merge. I did not want to merge and found a way to force push a branch.
In general you don’t want to do this unless you absolutely have to.
git push -f origin <branch>
This Stackoverflow question and answers helped me.