I recently find out a git project which include many useful git related command: https://github.com/visionmedia/git-extras
Install it and type :
git-delete-submodule submodule
Then things are done. The submodule directory will be removed from your repo and still exist in your filesystem. You can then commit the change like: git commit -am "Remove the submodule"
.