I have got a shared project with a number of submodules. Usually, when I want to update my working branch I execute next commands:
> git pull origin my_branch_name
and after that update my submodules:
> git submodule update --init --recursive
it updates all my submodules and initializes new one, if someone adds them to the project.
Problem is the project has got a lot of submodules, and some of them I don't use at all, but they require a lot of space on HDD. Is it possible to delete locally unused submodules and forbid git downloads them, when I update all submodules together?