-1

Scenario:

  • I have a huge (first) git repository with long history.
  • I exported the latest snapshot of it (I took latest HEAD and removed the .git directory)
  • I created a new (second) git repository, with this export as the initial commit.
  • I have continued to update this NEW repository. During all this time, I didn't touch the old repository (no new commits were done there).

Now, I would like to concatenate the two, to a single one big repository (and get the same final result as if I simply committed all the work that was done on the second repository, to the first repository). How can I do it with git commands?

  • https://stackoverflow.com/questions/15780956/how-can-i-combine-git-repositories-into-a-linear-history?noredirect=1&lq=1 – user3252219 May 08 '22 at 13:56

0 Answers0