I have several branches in my repo - master, production, staging, other_stuff I want to set my production branch as master, and rename my master branch to master_legacy.
How can I do it? Actually I found guide, but I'm not sure, whether I can implement it here:
git checkout production
git merge -s ours master
git checkout master
git merge production