Can I move the .git directory for a repo to it's parent directory?

前端 未结 3 881
傲寒
傲寒 2020-12-02 08:31

I have two sub-directories each with a repo, thus :

PPP/
 |--ABC/
 |   |--.git/
 |   |--AAA/
 |   |    BBB/
 |   |   CCC/
 |   
 |--DEF/
 |   |--.git/
 |   |         


        
3条回答
  •  感情败类
    2020-12-02 09:10

    For me it seems hard to do the way you want it because the history of both project won't merge.

    My best advice would be to create a new repository to contain ABC and DEF, keeping old repo from these two to have history backup and start a fresh history with this new project.

提交回复
热议问题