Complete the command to remove a git submodule directory.
git rm --cached [1]The git rm --cached command removes the submodule directory from the index but keeps the files locally.
Complete the command to remove the submodule entry from the git configuration.
git config --remove-section [1]The submodule configuration is stored under submodule.<path> in git config. Removing this section cleans the config.
Fix the error in the command to remove the submodule directory from the working tree.
rm -rf [1]The rm -rf command deletes the submodule directory from your local files. You must specify the submodule path, not config files.
Fill both blanks to update the git index and remove the submodule directory.
git rm --cached [1] && rm -rf [2]
First, remove the submodule from git index with git rm --cached using the path, then delete the folder with rm -rf using the same path.
Fill all three blanks to fully remove a git submodule.
git rm --cached [1] && rm -rf [2] && git config --remove-section [3]
To fully remove a submodule: remove it from git index, delete its folder, and remove its config section. Use the submodule path for the first two commands and the config section name for the last.