I would like to change the directory name of a Git submodule in my Git superproject.
Lets suppose I have the following entry in my .gitmodules file:
The most modern answer, taken from Valloric's comment above:
git mv old/submod new/submodgit status.)git commitand you're good to go!Done!