Re: User's mailing list? And multiple cherry pick

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David <wizzardx@...>
Cc: Wincent Colaiuta <win@...>, <git@...>
Date: Wednesday, June 4, 2008 - 2:09 pm

On 2008.06.04 12:02:13 +0200, David wrote:

The unit tests example is a pretty good use-case for rebase --onto.
Simply start your new topic on top of the WIP topic, you don't always
have to branch from master. Then you have the all the code around. Fix
the bug, and finally rebase your new topic onto master.

git checkout -b bug_fix_branch wip_branch
# work work work, commit commit commit
git rebase --onto master wip_branch bug_fix_branch

Eventually, you'll have to add stuff to your wip_branch while doing the
bug_fix, but that's relatively straight forward.

git checkout wip_branch
# work work work, commit commit commit
git rebase wip_branch bug_fix_branch

And then you can continue to work on the bug fix branch and at some
point end up at the rebase --onto from above.

Of course for stronger dependencies between wip_branch and
bug_fix_branch, that's not possible, but then you most likely wouldn't
want to cherry-pick the bug fix stuff into master anyway.

Björn
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: User's mailing list? And multiple cherry pick, Stephan Beyer, (Wed Jun 4, 4:00 am)
Re: User's mailing list? And multiple cherry pick, Jakub Narebski, (Wed Jun 4, 3:39 am)
Re: User's mailing list? And multiple cherry pick, Miklos Vajna, (Wed Jun 4, 7:10 am)
Re: User's mailing list? And multiple cherry pick, Theodore Tso, (Wed Jun 4, 7:36 am)
Re: User's mailing list? And multiple cherry pick, Jakub Narebski, (Wed Jun 4, 4:50 am)
Re: User's mailing list? And multiple cherry pick, Jakub Narebski, (Wed Jun 4, 5:47 am)
Re: User's mailing list? And multiple cherry pick, Junio C Hamano, (Wed Jun 4, 2:58 am)
Re: User's mailing list? And multiple cherry pick, Johan Herland, (Wed Jun 4, 4:16 am)
Re: User's mailing list? And multiple cherry pick, Jakub Narebski, (Wed Jun 4, 4:05 am)
Re: User's mailing list? And multiple cherry pick, Wincent Colaiuta, (Wed Jun 4, 5:39 am)
Re: User's mailing list? And multiple cherry pick, Björn, (Wed Jun 4, 2:09 pm)
Re: User's mailing list? And multiple cherry pick, Jakub Narebski, (Wed Jun 4, 7:09 am)
Re: User's mailing list? And multiple cherry pick, Wincent Colaiuta, (Wed Jun 4, 7:02 am)
Re: User's mailing list? And multiple cherry pick, Johan Herland, (Wed Jun 4, 4:23 am)