Some how in our project our master branch has completely broken. It thinks it's ahead by a few commits, and if we try merging develop in it shows huge amounts of conflicts. It's been broken for a long time now so a lot has happened in develop (too many conflicts to resolve).
I want to just overwrite everything in master with develop (so master basically equals develop). How do I do this?
I've tried deleting everything in master locally then running the following:
git checkout master
git reset --hard develop
Seems to give me all the correct files but when I try to push master I get this error:
Updates were rejected because the tip of your current branch is behind