【Git】「modified content, untracked content」とでて、git addできない

Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) (commit or discard the untracked or modified content in submodules) modified: deployment-application/react (modified content, untracked content) no changes added to commit (use "git add" and/or "git commit -a")
サブモジュールになっていたので、消した
rm -fr deployment-application/react/.git