I've created a new orphan branch with git checkout --orphan orphan-branch and made a lot of commits on that branch.
Now I want to replace the master branch with the newly created orphan-branch, all the files and the history of the master branch should be replaced by the files and the history of the orphan branch.
What is the best way to do this?