How do I "merge" two separate git repositories of the same website without losing commit data?
Posted
by PHLAK
on Stack Overflow
See other posts from Stack Overflow
or by PHLAK
Published on 2010-04-22T21:13:16Z
Indexed on
2010/04/22
21:53 UTC
Read the original article
Hit count: 204
I have two separate git repositories for the same version of a single website.
domain.com-1.0
domain.com-2.0
Version 2.0 was completely redone from the ground up. There is no bridge between the two repositories. I would now like to merge the two into a single repository, but maintain the separation.
I have already tagged domain.com-1.0 in it's repo and now want to clean the working tree and move domain-2.0 and all it's commit history into 1.0's repo. Is this possible or is there a better way of accomplishing this?
Note: domain.com-1.0 will not be developed on anymore and is "being retired".
© Stack Overflow or respective owner