I have a couple of submodules and I only want to update one of them.
I think this command updates all of them in
git submodule update --init --recursive --remote
I just want one of the modules updated though.
git submodule update command takes a path as a parameter.
Use the path of the submodule you want to update, as said path is recorded in your
git submodule update --init --remote a/submodule/path
- you execute the command where your
- your submodule follows a branch first.
For a manual update, you also can go into the submodule folder, and do a
git checkout aBranch/git pull yourself. Then go back to the parent repo, add and commit the new gitlink SHA1 for that submodule.
Answered By – VonC