V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
wohenyingyu01
V2EX  ›  问与答

git 更新 submodule 到底加不加--remote?

  •  
  •   wohenyingyu01 · Dec 23, 2015 · 3463 views
    This topic created in 3790 days ago, the information mentioned may be changed or developed.
    更新 submodule 指令,谷歌上大部分观点是:
    git submodule update --recursive

    但是我 git 文档却说是加--remote 参数来获取

    In order to set up your submodule to be easier to go in and hack on, you need do two things. You need to go into each submodule and check out a branch to work on. Then you need to tell Git what to do if you have made changes and then git submodule update --remote pulls in new work from upstream. The options are that you can merge them into your local work, or you can try to rebase your local work on top of the new changes.

    实际情况是加了--remote 就提示获取失败, unable to reach xxxxx ,如果只是--recursive 就提示 already up-to-date ,不知道到底更新成功没?
    2 replies    2015-12-24 00:29:37 +08:00
    sea516
        1
    sea516  
       Dec 23, 2015
    不需要,可以使用 sourceTree
    wohenyingyu01
        2
    wohenyingyu01  
    OP
       Dec 24, 2015 via iPhone
    @sea516 好的谢谢,怎么看 remote 参数的意思?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3762 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 04:47 · PVG 12:47 · LAX 21:47 · JFK 00:47
    ♥ Do have faith in what you're doing.