On Wed, 4 June 2008, David wrote:I think the simplest solution would be to mark old master, change it to topic (merge or branch -f), and use interactive rebase. $ git checkout master $ git branch TMP o--o--O *master, TMP \ o--o--X--X--X--X--o--o topic where '*master' means that 'master' is current branch. Then to rewind 'master' to 'topic' you can use either $ git merge topic which should fast-forward to 'topic', or use git-reset $ git reset --hard topic o--o--O TMP \ o--o--X--X--X--X--o--o topic, *master Then there is simply a matter of rebasing master interactively, picking commits marked X. $ git rebase --interactive TMP # pick commits marked X in above diagram, backup (save) both original # list of commits, and final list of commits. It is now safe to delete 'TMP' branch $ git branch -d TMP o--o--O--X'--X'--X'--X' *master \ o--o--X--X--X--X--o--o topic Now, if all goes well it would be simply a matter of rebasing 'topic' on top of 'master'; git-rebase would skip commits that are already there. If it is not the case, use interactive rebase again, this time picking commits marked 'o' (if you saved original series, and list of commits rebased, this should be fairly easy to find/do). And here you are. HTH -- Jakub Narebski Poland -- 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
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Paul Jackson | Re: cpuset-remove-sched-domain-hooks-from-cpusets |
| Rafael J. Wysocki | [Bug #11210] libata badness |
| David Miller | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
git: | |
