Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make git branch the master branch

Tags:

git

git-branch

My master branch is so different than my development branch that I would like it to just become my master branch without having to do a merge, is this possible? Seems like I could walk into a lot of work if I just try and do a merge.

like image 682
Slee Avatar asked Dec 31 '10 14:12

Slee


1 Answers

If you just have one copy of the repo, you could just delete your master branch, create a new branch from your dev branch called master, but you will have to notify others that you have changed the branch if there are other copies of the repo you don't control.

git checkout -b dev
git branch -D master
git checkout -b master
like image 190
Jed Schneider Avatar answered Sep 28 '22 07:09

Jed Schneider