开发者

make git branch the master branch

开发者 https://www.devze.com 2023-02-01 18:30 出处:网络
My master branch is so different than my development branch that I would like it to just become my master branch without having t开发者_JAVA技巧o do a merge, is this possible?Seems like I could walk i

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


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
0

精彩评论

暂无评论...
验证码 换一张
取 消