嵌套的git仓库? [英] Nested git repositories?

查看:264
本文介绍了嵌套的git仓库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以嵌套git存储库吗?我有:

Can I nest git repositories? I have:

 /project_root/
 /project_root/my_project
 /project_root/third_party_git_repository_used_by_my_project

git init /添加/ project_root是否有助于本地管理所有内容,还是必须管理my_project和第三方分开吗?

Does it make sense to git init/add the /project_root to ease management of everything locally or do I have to manage my_project and the 3rd party one separately?

推荐答案

您可能正在寻找名为 submodules 。此功能可帮助您管理嵌套在主存储库内的相关存储库。

You may be looking for the Git feature called submodules. This feature helps you manage dependent repositories that are nested inside your main repository.

这篇关于嵌套的git仓库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆