It seems like, you may have removed the .git folder. In that case you can try

git rm --cached folderpath/ -f


where folderpath is the path from where you have deleted the .git folder 


Reference - https://stackoverflow.com/questions/47403358/fatal-in-unpopulated-submodule