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

2015-12-23 10:05:14 +08:00
 wohenyingyu01
更新 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 ,不知道到底更新成功没?
3084 次点击
所在节点    问与答
2 条回复
sea516
2015-12-23 10:34:52 +08:00
不需要,可以使用 sourceTree
wohenyingyu01
2015-12-24 00:29:37 +08:00
@sea516 好的谢谢,怎么看 remote 参数的意思?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/245525

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX