Home
Posts
Talks
Publications
Projects
Contact
CV
state
Recursively Git Reset All Submodules
git submodule foreach --recursive git reset --hard This command recursively resets all submodules in a git project. This is especially useful for projects with submodules (and maybe even submodules within submodules) when you want to reset your working copy to a completely clean state.
Last updated on Apr 17, 2021
1 min read
Cite
×