Created
May 23, 2021 23:21
-
-
Save TheKrush/2dc3f141ffea026c26b16af5b512b2ae to your computer and use it in GitHub Desktop.
Updates all submodules of current repo to their latest revision, followed by commit and push.
This file contains 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 characters
git submodule foreach git reset --hard | |
git submodule foreach --recursive git checkout | |
git submodule foreach git pull origin master | |
git commit -am "Update submodules to latest" | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment