2

I have a Django project with some applications from the directories of some github repositories. I've made some changes into them and would like to push the changes to my forks of the projects. The project directory looks like this:

mainproject
--foo
--bar

where foo and bar are two directories of different github repositories. The mainproject is itself a git repository. The repository containing foo looks like this:

project
--foo
--someotherfolder

Ideally I'd like to keep the applications within the mainproject folder.

4

1 回答 1

2

我在项目中管理它的方式是使用 git 子模块。

我有一个依赖项文件夹(在我的主项目应用程序中),我在其中跟踪我的所有依赖项,即第三方 django 应用程序。

你需要做

git submodule add /foo.git /foo git submodule add /bar.git /bar

您可能会发现此链接很有帮助。http://git-scm.com/book/en/Git-Tools-Submodules

于 2012-12-04T17:09:14.343 回答