0
當我開始使用GIT時,我並不熟悉Project Code,只是想要在源代碼控制下獲取所有代碼。該項目的層次結構是這樣的:我想從更高的git存儲庫設置較低的存儲庫項目
/Projects/.git # I put the git repository here, which I think was a big mistake.
/Projects/Project1
/Projects/Project2
/Projects/Project3
/Projects/Project4
/Projects/Project5
有一次,我結束了創建一個子庫:
/Projects/.git (now it contains all of /Projects/Project3/.git changes too)
/Projects/Project1
/Projects/Project2
/Projects/Project3
/Projects/Project3/.git # I think this will compound the problem of seperation
/Projects/Project4
/Projects/Project5
我真正想要的是要做到這一點:
/Projects/(no .git here)
/Projects/Project1/.git
/Projects/Project2/.git
/Projects/Project3/.git
/Projects/Project3/.git
/Projects/Project4/.git
/Projects/Project5/.git
我我查看了過濾器分支,但並不真正瞭解如何使用它將歷史從較高的/Projects/.git存儲庫中移出到單獨的較低/Projects/Project[1-5]/.git存儲庫中。
我一直在環顧四周,看到有一個新的git子模塊工具。我想知道這是我應該嘗試使用的,但我不確定。
有沒有人有一個想法,如何將這些項目分離成獨立的存儲庫,以便我可以擺脫覆蓋整個項目集的上層存儲庫?
任何幫助,將不勝感激。
艾倫