Our remote master branch somehow got messed up. Current development code is on the master branch along with the latest commits. Obviously, the development code is not ready
You're not allowed to do git push that is not fast-forward.
If the remote is GitHub, go to https://github.com/$USER/$REPO/settings/branches and un-protect the branch in question.
You have to be admin of the repo to do that.
If the remote is your own git server, run git config receive.denynonfastforwards false there.