1. Merge with the master branch 2. If you really can’t merge with the master branch, you can only delete it You already have the branch. You need to set your Dev branch as the default branch on the git main page before you can delete the master branch Home page Face-enter the project main page-right navigation setting-left navigation branches-default branch-set default branch-then you can use git branch -d master to delete the master branch.
1. Merge with the master branch
2. If you really can’t merge with the master branch, you can only delete it
You already have the branch. You need to set your Dev branch as the default branch on the git main page before you can delete the master branch
Home page Face-enter the project main page-right navigation setting-left navigation branches-default branch-set default branch-then you can use git branch -d master to delete the master branch.
Reference link: https://matthew-brett.github.io/pydagogue/gh_delete_master.html
git checkout dev
git merge master
git brach -d master
git branch -m dev master
git push -f origin master
参考How to replace master branch in git