Skip to content

Instantly share code, notes, and snippets.

@francisbyrne
Created November 18, 2014 21:40
Show Gist options
  • Save francisbyrne/cc5cd6ab5a69b951c0e9 to your computer and use it in GitHub Desktop.
Save francisbyrne/cc5cd6ab5a69b951c0e9 to your computer and use it in GitHub Desktop.
Recursively synchronise git submodules in your repository
#!/bin/bash
pushd "$(git rev-parse --show-toplevel)"
git submodule sync
git submodule update --init --recursive $*
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment