可以嵌套gits吗? [英] Is it possible to nest gits?
本文介绍了可以嵌套gits吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设我有一个项目proj1,它创建了tool1.
Let's say I have project proj1, which creates tool1.
假设我需要对proj2使用tool1.
Let's say I need to use tool1 for proj2.
我想做的是将proj1 git放在proj2内,这样我就可以独立管理proj1并在从其目录中拉出proj2时对其进行更新.
What I want to do is put the proj1 git inside of proj2, so that I can independently manage proj1 and have it update in proj2 when pulled from its directory.
像这样可能吗?
推荐答案
git子模块可以满足您的需求: http://git-scm.com/book/en/Git-Tools-Submodules
git sub modules can do what you looking for: http://git-scm.com/book/en/Git-Tools-Submodules
这篇关于可以嵌套gits吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文