If you have only one copy of the repo, you can simply delete the main branch, create a new branch from the dev branch called master, but you will need to notify others that you changed the branch if there are other copies from the repo you do not control .
git checkout -b dev git branch -D master git checkout -b master
Jed schneider
source share