Developing software in the Real World

Git submodules cheat sheet

Note: run these from the top level of your repo.

Clone a repo with submodules:

View status of all submodules:

Update submodules after switching branches:

Add a submodule:

Update all submodules to latest remote version

Update a specific submodule to the latest version (explicit method):

Remove a submodule: