* How to move a big branches to a new base?
@ 2010-02-26 3:18 Lin Mac
2010-03-03 3:17 ` Lin Mac
2010-03-03 3:54 ` John Tapsell
0 siblings, 2 replies; 4+ messages in thread
From: Lin Mac @ 2010-02-26 3:18 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to move a big branches to a new base?
2010-02-26 3:18 How to move a big branches to a new base? Lin Mac
@ 2010-03-03 3:17 ` Lin Mac
2010-03-03 3:54 ` John Tapsell
1 sibling, 0 replies; 4+ messages in thread
From: Lin Mac @ 2010-03-03 3:17 UTC (permalink / raw)
To: git
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 <mkl0301@gmail.com>:
> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to move a big branches to a new base?
2010-02-26 3:18 How to move a big branches to a new base? Lin Mac
2010-03-03 3:17 ` Lin Mac
@ 2010-03-03 3:54 ` John Tapsell
2010-03-04 9:34 ` Lin Mac
1 sibling, 1 reply; 4+ messages in thread
From: John Tapsell @ 2010-03-03 3:54 UTC (permalink / raw)
To: git
On 26 February 2010 03:18, Lin Mac <mkl0301@gmail.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to move a big branches to a new base?
2010-03-03 3:54 ` John Tapsell
@ 2010-03-04 9:34 ` Lin Mac
0 siblings, 0 replies; 4+ messages in thread
From: Lin Mac @ 2010-03-04 9:34 UTC (permalink / raw)
To: John Tapsell; +Cc: git
2010/3/3 John Tapsell <johnflux@gmail.com>:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-04 9:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26 3:18 How to move a big branches to a new base? Lin Mac
2010-03-03 3:17 ` Lin Mac
2010-03-03 3:54 ` John Tapsell
2010-03-04 9:34 ` Lin Mac
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).