Skip to content

Instantly share code, notes, and snippets.

@arlm
Forked from stephenparish/submodule-pull.sh
Created October 28, 2015 19:16
Show Gist options
  • Save arlm/4208c2ee64cc7db32ced to your computer and use it in GitHub Desktop.
Save arlm/4208c2ee64cc7db32ced to your computer and use it in GitHub Desktop.
Update submodules in a git repository to the latest, but exclude one..
git submodule foreach '[ "$path" == "submodule-to-exclude" ] || git pull origin master'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment