Follow the below steps -
1) Delete the master
branch from local as well as remote
2) Stay on master new
branch and create new branch git branch master
3) Then run git checkout master
This will clone all your code in master new
branch to the newly created master
branch
4) Now you can safely delete master new
branch.