Created
July 17, 2018 18:14
-
-
Save bsidhom/32774f0a4b281fad42d0db155865d655 to your computer and use it in GitHub Desktop.
Update each submodule to the latest version of `origin`'s default branch
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 characters
#!/usr/bin/env bash | |
git submodule foreach 'git fetch origin && git checkout $(git symbolic-ref refs/remotes/origin/HEAD)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment