Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Update submodules in a git repository to the latest, but exclude one..
git submodule foreach '[ "$path" == "submodule-to-exclude" ] || git pull origin master'
@ghost

This comment has been minimized.

Copy link

ghost commented Aug 24, 2017

I had to change == to = in order to make it work (ubuntu 16.04)

@kaurov

This comment has been minimized.

Copy link

kaurov commented Dec 31, 2018

git submodule foreach '[ "$path" = "library/PhpExcel" ] || git status'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.