git branch -m master legacy git branch -m dev master
Set default branch in admin not master.
Delete the remote master branch on GitHub.
git push origin :master
Push up the new master to GitHub.
git push origin master:refs/heads/master
On the GitHub repo, change the default branch back to ‘master’