V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
wohenyingyu01
V2EX  ›  问与答

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

  •  
  •   wohenyingyu01 · 2015-12-23 10:05:14 +08:00 · 3071 次点击
    这是一个创建于 3018 天前的主题,其中的信息可能已经有所发展或是发生改变。
    更新 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 条回复    2015-12-24 00:29:37 +08:00
    sea516
        1
    sea516  
       2015-12-23 10:34:52 +08:00
    不需要,可以使用 sourceTree
    wohenyingyu01
        2
    wohenyingyu01  
    OP
       2015-12-24 00:29:37 +08:00 via iPhone
    @sea516 好的谢谢,怎么看 remote 参数的意思?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3248 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:44 · PVG 19:44 · LAX 04:44 · JFK 07:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.