Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Subtree merging of sub-directories between repositories?

From: <hidden>
Date: 2016-06-15 22:47:08

Is it possible to use the subtree merge strategy to import just one
directory from a repository into a directory of a different
repository? The subtree merge example describes bringing in an entire
repository as a directory, but I'm not sure how to adapt that to just
import part of the source repository. The repositories are completely
different, but repository A has a couple directories I want to import
into repository B (along with the history that affected those
directories). I may also make changes on either side and it would be
nice to be able to re-merge in either direction.

I was thinking I might need something like the git-subtree script, but
maybe this can be done with standard git commands?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help