Skip to content

Instantly share code, notes, and snippets.

@nmccready
Forked from stephenparish/submodule-pull.sh
Created January 22, 2018 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmccready/d638f7564da91af1b594063cecfab125 to your computer and use it in GitHub Desktop.
Save nmccready/d638f7564da91af1b594063cecfab125 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