How to move a big branches to a new base?

4 messages, 2 authors, 2016-06-15 · open the first message on its own page

How to move a big branches to a new base?

From: Lin Mac <hidden>
Date: 2016-06-15 22:48:21

Hi,

I have a branch that have about 10 descendent branches. Now I would
like to move this branch, and all the descendent branches, to a new
base, and I might need to do so quiet frequently before I merge it to
master branch.

My "dirty" way is to rebase step by step, it takes about 15-20
rebases, but the branches is somehow complicated, and this seems
error-prone to me.

Is there a more clean way to do so?

Thanks in advance.

Best Regards,
Mac Lin

Re: How to move a big branches to a new base?

From: Lin Mac <hidden>
Date: 2016-06-15 22:48:23

Hi,

Sorry for re-send this again, for this is really important to me and
trouble me a lot. And I've been searching for a long time, but I
didn't found any useful.

Or maybe it's the way I uses branch wrong? Should I always keep a
branch as clean as possible, and use tag for some unused/not often
used branch, to avoid such problem?

Also I doubt whether my last mail reach the mailing list or not.
So, any response welcome, even RTFM (I'm actually reading it....) is
fine, at least let me know it's just a stupid question.....

Best Regards,
Mac Lin

2010/2/26 Lin Mac [off-list ref]:
Hi,

I have a branch that have about 10 descendent branches. Now I would
like to move this branch, and all the descendent branches, to a new
base, and I might need to do so quiet frequently before I merge it to
master branch.

My "dirty" way is to rebase step by step, it takes about 15-20
rebases, but the branches is somehow complicated, and this seems
error-prone to me.

Is there a more clean way to do so?

Thanks in advance.

Best Regards,
Mac Lin

Re: How to move a big branches to a new base?

From: John Tapsell <hidden>
Date: 2016-06-15 22:48:23

On 26 February 2010 03:18, Lin Mac [off-list ref] wrote:
Hi,

I have a branch that have about 10 descendent branches. Now I would
like to move this branch, and all the descendent branches, to a new
base, and I might need to do so quiet frequently before I merge it to
master branch.
I tend to keep my branches as small as possible - a few commits at
most.  And avoid merges like the plague.  This seems to work pretty
well.
Remember you can squash your commits together to keep the branches
clean and well-ordered.

John

Re: How to move a big branches to a new base?

From: Lin Mac <hidden>
Date: 2016-06-15 22:48:23

2010/3/3 John Tapsell [off-list ref]:
I tend to keep my branches as small as possible - a few commits at
most.  And avoid merges like the plague.  This seems to work pretty
well.
Remember you can squash your commits together to keep the branches
clean and well-ordered.
squash is a powerful tools, but doens't help much in this situation.

In other word, one have to prevent a branch to becoming a tree.
Does it worth to have a new tool for such situation?

Best Regard,
Mac Lin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help