git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
refresh
V2EX  ›  git

子项目的git怎么处理?

  •  
  •   refresh · Jul 5, 2013 · 4090 views
    This topic created in 4695 days ago, the information mentioned may be changed or developed.
    我现在有一个项目,项目有若干个子项目,大家觉得是统一放到git下,还是不同的子项目分成不同的git仓库好?

    例如项目是这样:
    some_project
    ios
    website
    android
    documents

    我觉得这样git的目录应该统一在some_project下,但这样有一个问题,ios的项目是在ios目录下,那么xcode就无法使用git,因为.git是在some_project下。

    另一个解决方案是给ios和website建立不同的git仓库,但这样项目就不会被统一管理起来了。

    so, 有什么好招?
    4 replies    1970-01-01 08:00:00 +08:00
    zhouitpro
        1
    zhouitpro  
       Jul 5, 2013
    git submodule ?
    alexrezit
        2
    alexrezit  
       Jul 5, 2013
    git submodule.
    refresh
        3
    refresh  
    OP
       Jul 5, 2013
    @zhouitpro
    @alexrezit

    git submodule可以解决部分问题,但需要改变文件结构
    gno23x
        4
    gno23x  
       Jul 5, 2013
    我觉得
    ios
    website
    android
    这三个还是分三个仓库吧。

    documents的话可以作为上面三个仓库的submodule
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3229 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 12:51 · PVG 20:51 · LAX 05:51 · JFK 08:51
    ♥ Do have faith in what you're doing.