When deleting everything in master and copying over the other branch is not the best solution.
git checkout the_other_branch git merge -s ours master git checkout master git merge the_other_branch
Source: How to replace master branch in git, entirely, from another branch?