I need to export a git repository content and import it in a target repository. I know of two alternatives to do it, but they do not solve my problem
a) Add the source repository as a remote and do a merge to the target. I cannot use this as both repositories are not on the same network
b) Use git archive and copy the contents to the target. In this git archive the revision info is lost.
I need something that does an archive along with the version history and enables me to merge in the target. How can this be done?