windows - 同一文件夹中是否可以有多个本地 git 存储库?

标签 windows git version-control tortoisegit

感谢您花时间阅读我的帖子。

我目前正在使用 Unity Engine - 它要求某些文件位于项目目录中的某些文件夹中。例如,假设我有一个假设的项目 - LameGame。我的文件夹看起来像这样

./LameGame  
./LameGame/Assets  
./LameGame/Assets/Resources  
./LameGame/Assets/Editor  
./LameGame/Assets/Plugins  
./LameGame/Assets/Scripts

我通过 git 为 Unity 引擎维护了一些不同的插件,并且想知道是否有办法将它们作为子模块全部导入到同一个项目中。我遇到的问题是它们不能都有一个唯一的目录 - 它们需要像这样分布在目录之间:

插件A

/Assets/Resources/PluginA/*
/Assets/Editor/PluginA/*
/Assets/Plugins/PluginA/*

插件B

/Assets/Resources/PluginB/*
/Assets/Editor/PluginB/*
/Assets/Plugins/PluginB/*

因此,理想情况下,我正在寻找一种解决方案,允许我的主项目以及插件全部源自 Assets/文件夹。这可以用 Git 实现吗?

预先感谢您的任何意见/反馈/建议!

(注意:我主要使用 Windows 7 和 TortoiseGit)

最佳答案

我宁愿:

关于windows - 同一文件夹中是否可以有多个本地 git 存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6035227/

相关文章:

linux - 在 Ubuntu 中使用 QSerialport 时出现问题

git - 与 ClearCase 相比如何使用 git 元数据策略?

Gitignore 错误地排除了子文件

version-control - 在 TFS (CodePlex) 中快速/轻松地重命名文件名

javascript - C++,win32 API : How to create an html rendering window so that your application would get callbacks from JS calls?

windows - 崩溃转储意味着在顺序指令之间更改了寄存器值

Git 子树与 Monorepo

git - 如果我在 git 中删除父分支,子分支会发生什么

c++ - 逐行读取字符串文本文件的最快方法

安卓工作室 : How to integrate Git from Windows 10 Ubuntu bash?