Skip to content

Instantly share code, notes, and snippets.

@alexbridge
Created January 14, 2024 10:40
Show Gist options
  • Save alexbridge/8c7a39d4713d625b279a2af98d6146dc to your computer and use it in GitHub Desktop.
Save alexbridge/8c7a39d4713d625b279a2af98d6146dc to your computer and use it in GitHub Desktop.
GIT bump all submodules to latest develop branch
bump-versions:
git submodule foreach 'git fetch origin; git checkout origin/develop'
git submodule foreach 'cd .. && git add $$name'
git commit -m 'Bump versions'
git show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment