Created
July 15, 2014 15:03
-
-
Save stephenparish/603e637308567f453a16 to your computer and use it in GitHub Desktop.
Update submodules in a git repository to the latest, but exclude one..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git submodule foreach '[ "$path" == "submodule-to-exclude" ] || git pull origin master' |
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
I had to change
==
to=
in order to make it work (ubuntu 16.04)