Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 Gitolite 在我的托管存储库中创建子模块。在 Gitolite 之外的 git 中,子模块很容易。然而,Gitolite 似乎使事情复杂化了。
这与并排拥有第二个存储库没有什么不同。像创建第一个存储库一样创建第二个存储库后,使用与创建第二个存储库时相同的 URL 将子模块添加到第一个存储库。
git submodule add <same url as if you were just cloning> <some path> git submodule update --init --recursive
希望这可以帮助。