My current git status
is:
modified: Gemfile
modified: Gemfile.lock
modified: ... many more files
modified: submodule_1 (new commits)
modified: submodule_2 (new commits)
modified: ... many more updated submodules ...
How do I git add -u
except new commits in submodules?
What I want to achieve is an equivalent of git add -u
, then git reset HEAD submodule_1 submodule_2 ... submodule_n
, or an equivalent of git add -u Gemfile Gemfile.lock ...all other files that are not submodules...