Skip to content

Instantly share code, notes, and snippets.

@youandhubris
Last active April 30, 2025 09:31
Show Gist options
  • Save youandhubris/ec76044d4a25aebe85432c04f420026c to your computer and use it in GitHub Desktop.
Save youandhubris/ec76044d4a25aebe85432c04f420026c to your computer and use it in GitHub Desktop.
Update all Submodules, using a Custom Action, in Source Tree

Update all Submodules, using a Custom Action, in Source Tree

  1. Go to Actions > Custom Actions > Edit > Add

  2. Menu Caption Update All Submodules

  3. Check Show Full Output

  4. Script to run /usr/bin/git

    If installed in default location

  5. Parameters submodule update --recursive --remote

@jackjansen
Copy link

Note that using --remote will update each submodule repo to their current HEAD. This may not always be what you want. I've added two custom actions:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment