Lately I’ve been extremely busy with a few programming projects that I will keep under-wraps for the time being. As such, I have certainly been neglecting this blog! I would apologize and say that This is the end of that trend, but that’s probably not true.
The advantage of all of this programming is that I’ve had the chance to learn about a lot of new (to me, anyway) technologies and concepts. One if these is dealing with submodules with Git.
NOTE: I won’t be getting into the details of what Git submodules are here. For that, check out the official Git documentation on it.
For whatever reason, I can never remember the commands to pull the submodules down. As such, I am creating this mostly as a reference for myself.
First Time Pull
For the first time pulling down the submodules, you can do so with:
git submodule update --init --recursive
To Update Submodules
To update the submodules once they’ve been pulled, run the following:
git submodule update --recursive --remote