Ok,
I have finally figured (actually, Edward did) out how to move files
from one repository to another and keeping history in the process.

cd /to/your/git/stuff/that/should/be/moved

git format-patch --stdout --root -- the/path/that/should/move >~/someFile

cd /to/the/destination/repository

git am ~/someFile

The "am" command is actually "apply patches from mailbox", and the
previous "format-patch" will generate email.
Note that "am" imports patches directly into repository, so there is
no "commit" stage or similar later.


Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to