git submodule add http://blah.blha.com/project.git a_project_path
git add *
git commit -m "adding a submodule"
cd a_project_path
git pull
cd ..
git commit -m "updating the submodule"
- Delete the relevant section from the .gitmodules file.
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Commit and delete the now untracked submodule files.