Skip to content

Instantly share code, notes, and snippets.

@marcoslopes
Forked from stephenparish/submodule-pull.sh
Created April 29, 2016 10:37
Show Gist options
  • Save marcoslopes/3a7a68e5976236e5359a5f876b823114 to your computer and use it in GitHub Desktop.
Save marcoslopes/3a7a68e5976236e5359a5f876b823114 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