我想将存储库一分为二。已经存在类似的问题:Detach (move) subdirectory into separate Git repository,但是我有一个 set 子目录和 文件拆分(而不是单个子目录)。
如果我可以将所有需要保留的目录和文件列入白名单,是否可以这样做?
我的结构是这样的:
Product/__init__.py # Needs to be there.
Product/Feature-1
Product/Feature-Experimental # Needs to be there.
Schema/Common.txt # Needs to be there.
Schema/Feature-1
Schema/Feature-Experimental # Needs to be there.
UI/Feature1.js
UI/Feature2.js # Needs to be there.
PS:在上面的树中,任何不带扩展名的内容都是一个文件夹。