Make git split the main branch

My lead branch is so different from my development branch that I would like it to just become my main branch without merging, is this possible? Looks like I could do a lot of work if I just try to merge.

+6
git git-branch
source share
1 answer

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 
+10
source share

All Articles