Christian Couder <chriscool@xxxxxxxxxxxxx> writes: > You want N' to have the same content as N but to have M as parent. So you > could do something like the following: > > (We suppose that commits A to M are in branch1 and that you are in the root > directory of your repo2 working directory.) > > $ git checkout -b repo1-branch1 remote/repo1/branch1 > $ git checkout N -- . > $ export GIT_AUTHOR_NAME=<author name of commit N> > $ export GIT_AUTHOR_EMAIL=<author email of commit N> > $ export GIT_AUTHOR_DATE=<date of commit N> > $ git commit -a Isn't that what git cherry-pick does? Andreas. -- Andreas Schwab, schwab@xxxxxxxxxxxxxx GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- 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