Skip to content

Instantly share code, notes, and snippets.

@alexander-arce
Forked from stephenparish/submodule-pull.sh
Created August 1, 2022 16:26
Show Gist options
  • Save alexander-arce/ffae38dcaa2ae3b5582cba9bbe0ffe8e to your computer and use it in GitHub Desktop.
Save alexander-arce/ffae38dcaa2ae3b5582cba9bbe0ffe8e 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