coolair
V2EX  ›  问与答

CM 的代码只能同步一个分支?不能全部同步下来,然后自己在本地切换?

  •  
  •   coolair · Jan 1, 2015 · 2316 views
    This topic created in 4241 days ago, the information mentioned may be changed or developed.
    只能这样:
    repo init -u git://github.com/CyanogenMod/android.git -b cm-12.0
    不能这样:
    repo init -u https://android.googlesource.com/platform/manifest --mirror

    咋办?只能把想要的分支一个个同步下?!
    3 replies    2015-01-01 18:25:56 +08:00
    BOYPT
        1
    BOYPT  
       Jan 1, 2015
    你直接用git clone全同步仓库下来不就完了,repo命令就是为了避免同步太多才做的脚本。
    clino
        2
    clino  
       Jan 1, 2015 via Android
    更换branch可以在同一个再次init然后sync

    --mirror 其实是可以的,不过下来的会是 bare git
    clino
        3
    clino  
       Jan 1, 2015 via Android
    更换branch可以在同一个目录再次init然后sync

    --mirror 其实是可以的,不过下来的会是 bare git
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5298 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 07:07 · PVG 15:07 · LAX 00:07 · JFK 03:07
    ♥ Do have faith in what you're doing.