If you want to make sub folder in your git repository like git/firstrepository/subrepository. you simply copy the url of repository and paste with "git submodule url".
git submodule add repo_url
if you want to delete sub folder of your repository file.you just a command git submodule remove command.
git submodule remove repo_file