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
| hooanon05 | [PATCH 67/67] merge aufs |
| Greg Kroah-Hartman | [PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt |
| monstr | [PATCH 33/52] [microblaze] bug headers files |
| Oliver Pinter | Re: x86: 4kstacks default |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| David Miller | [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
