Reputation: 13
I have 2 repositories in different networks (intranets). I want to copy the changes from the new repository to the old one including new branches, tags and file changes.
I thought of saving the git diff
between every new-repo's branch and old-repo's branch and save common ancestors commits between branches to restore the topology of the new-repo (in case of new branches in new-repo).
Is there an easier way to do this?
Upvotes: 1
Views: 29
Reputation: 38649
You usually use git bundle
for such a workflow. It allows to transfer objects that are usually transferred by fetch
- and thus also pull
- via an archive that you can transfer over any medium you want.
Upvotes: 1