From 37d605dd5e9023bca2be6f25815037e4a051889a Mon Sep 17 00:00:00 2001 From: Joe Heck Date: Mon, 15 Apr 2019 15:04:58 -0700 Subject: [PATCH] adding a note on how to reset all the submodules in case you accidentally messed up the code without having to hit each one specifically --- Technotes/SubmoduleCheatSheet.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Technotes/SubmoduleCheatSheet.md b/Technotes/SubmoduleCheatSheet.md index fbbe4aec8..bd1a4e21a 100644 --- a/Technotes/SubmoduleCheatSheet.md +++ b/Technotes/SubmoduleCheatSheet.md @@ -17,3 +17,7 @@ To update all submodules to their latest commits: git submodule foreach git pull origin master +If you messed around with those projects and want to reset them to where the current project thinks +they should be, you can use the command: + + git submodule foreach --recursive git reset --hard