开发者

how to migrate old repository into new repository, and retain the log

开发者 https://www.devze.com 2023-03-18 18:32 出处:网络
I have a git repository (repo1) for deployment purposes. The repo contains the folders 1, 2, 3 which store different types of the source codes and each has a log of a branch by multi request number (e

I have a git repository (repo1) for deployment purposes. The repo contains the folders 1, 2, 3 which store different types of the source codes and each has a log of a branch by multi request number (example, req# 1 under branch 1, req# 2 under branch 2, and these will merge 开发者_运维问答into master).

now, I want to restructure my repository. I will create a big repository (repo2) which should contain the previous folders 1, 2, 3 and some new folders A, B, C, this is because, I still need to refer to all logs that I have been deployed in repo1.

How to create the new repo2 and still be able to keep all logs in repo1 ?


If you clone repo1 to repo2, you will have the entire commit tree including branches and all the history. Then you can just add folders A,B,C.

In fact, you could just add folders A,B,C to repo1 if you like.

Hope that helps?

0

精彩评论

暂无评论...
验证码 换一张
取 消