开发者

Rewriting git history to convert master branch to development branch?

开发者 https://www.devze.com 2022-12-25 08:08 出处:网络
I\'m looking to rewrite my git repo to use a new branching model I came across: http://nvie.com/git-model

I'm looking to rewrite my git repo to use a new branching model I came across:

http://nvie.com/git-model

But right now all my history lives in the master branch. I'd like to rewrite it (possible using git-filter-branch?) So that all that history is in a branch called development now.

Is th开发者_运维问答is possible? It's definitely beyond my limited git skills.


Just create a development branch, pointing to the master's HEAD, and then you can delete the master branch.

Btw. from the first look at that branching model, I don't think it was made while really thinking of git's branching techniques. Because it interprets branches as steady development lines which is true for other VCSystems like SVN, but not for git. Branches in git are just pointers to commits, and you can move them around as much as you want.

0

精彩评论

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