How do I get “git reset” to also automatically reset submodules?
I’m working on some projects with a number of submodules, so it’s nice to be able to reset the submodules when working on the main project. One way to solve this is by adding a flag to the reset to tell it to recurse into the submodules and update them as well: