Git Submodules
Git submodules facilitate complex projects that depend on external libraries in a build system agnostic way. Practice Git submodule command usage to uncover useful methods. It’s suggested to set Git config option
git config --global submodule.recurse trueto
automatically update Git submodules
when running most Git commands (except git clone).
An important option to avoid breaking repositories by
forgetting to push changed submodules
is
git config --global push.recurseSubmodules checkthat will fail the push if there are changes in submodules that haven’t been pushed to their respective repositories.
2026
- 2026-02-02 – Git submodule shallow
2025
- 2025-11-14 – Git Bisect project with Git Submodules
- 2025-03-10 – Matlab buildtool subprojects
2023
- 2023-11-13 – Locate Git submodule config file
- 2023-10-04 – Git submodule change remote
- 2023-02-20 – Git maintainer feature branch workflow
2021
- 2021-03-07 – CMake add Git submodule directory