Missing submodule command - git submodule update --recursive --remote #11509
-
Am I crazy or is this missing as an option?
I don't understand why "Update all submodules" does this instead?
That command does not pull from the remote. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
FYI, know I can do that with a script and I have, but seems like this is a common use, while --init is only for when a repo is first checked out. |
Beta Was this translation helpful? Give feedback.
-
Wow, thanks for all that info, that must have taken you a while.
Ok, that's what I thought you were getting at, and yes, we don't want to do that, we want the submodule to stay current with the head of its remote.
Tried that, but still does not fetch from the remote. Maybe I'm missing something here.
Not sure why we would need to do all of that, as |
Beta Was this translation helpful? Give feedback.
-
I had the same issue. I know is not a typical workflow, but sometimes you need a submodule to always point to the "head" revision of the selected branch as configured, and there is not an asy way other than use a git script or go manually on each submodule one by one fetching/merging from the head, than sync the main repository again recursively |
Beta Was this translation helpful? Give feedback.
I did that to get my master in my forks synced up to my remotes so yes it does more. If you want to add the pr that adds the menu option, then some points: