Created
June 24, 2024 13:05
-
-
Save byates/d049f99a8e24cdcaf87752be414a18de to your computer and use it in GitHub Desktop.
Revisions
-
byates created this gist
Jun 24, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/bin/bash #Cleans and resets a git repo and its submodules #https://gist.github.com/nicktoumpelis/11214362 git reset --hard git submodule sync --recursive git submodule update --init --force --recursive git clean -ffdx git submodule foreach --recursive git clean -ffdx