Git submodule pull overwrite/discard any local changes
git reset --hard
does exactly that - discard all changes and return to HEAD
.
Or you can use git stash
and after pull - git stash apply
to restore your changes over updated tree.
git reset --hard
does exactly that - discard all changes and return to HEAD
.
Or you can use git stash
and after pull - git stash apply
to restore your changes over updated tree.