On Sun, 11 Oct 2009, Christian Couder wrote: > $ git checkout -b repo1-branch1 remote/repo1/branch1 > $ git checkout N -- . > ... > If everything is ok then you can use: > > $ git replace N HEAD Thanks for detail instruction, I tested it ok except that when trying to checkout it reported an error $ git checkout -b repo1-branch1 remote/oldjproject/master fatal: git checkout: updating paths is incompatible with switching branches. Did you intend to checkout 'remote/oldjproject/master' which can not be resolved as commit? but it ran ok by omitting that 'remote/' $ git checkout -b repo1-branch1 oldjproject/master Does it need to purge the file system tree before git checkout N -- . so that there will be no artifact leaved by M? I found that it is necessary to do a git reset --hard (original HEAD) to complete the story. Is it correct? git version 1.6.5.rc3.35.g3340 -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html