这是一个创建于 4243 天前的主题,其中的信息可能已经有所发展或是发生改变。
我现在有一个项目,项目有若干个子项目,大家觉得是统一放到git下,还是不同的子项目分成不同的git仓库好?
例如项目是这样:
some_project
ios
website
android
documents
我觉得这样git的目录应该统一在some_project下,但这样有一个问题,ios的项目是在ios目录下,那么xcode就无法使用git,因为.git是在some_project下。
另一个解决方案是给ios和website建立不同的git仓库,但这样项目就不会被统一管理起来了。
so, 有什么好招?
4 条回复 • 1970-01-01 08:00:00 +08:00
![zhouitpro](https://cdn.v2ex.com/avatar/6760/9c6c/40546_normal.png?m=1388049486) |
|
1
zhouitpro 2013-07-05 18:23:57 +08:00
git submodule ?
|
![alexrezit](https://cdn.v2ex.com/avatar/f41b/a39d/18119_normal.png?m=1395495514) |
|
2
alexrezit 2013-07-05 18:29:59 +08:00
git submodule.
|
![gno23x](https://cdn.v2ex.com/gravatar/8200b08962944fcf619d953bf5a1d052?s=48&d=retro) |
|
4
gno23x 2013-07-05 19:27:45 +08:00
我觉得 ios website android 这三个还是分三个仓库吧。
documents的话可以作为上面三个仓库的submodule
|