I've been working on an iteration of my portfolio site and recently finished making a lot of improvements to it. I had made a copy of the root folder to make these changes and meant to copy and paste the new code into the old folder with its contents already in GitHub (the older version of the site). I forgot about this and mistakenly ended up with a portfolio repository inside an older portfolio repository. When I then tried the copy+paste method, committing the code failed I keep getting the errors:
Error: fatal: No url found for submodule path '[name of new portfolio root]' in .gitmodules
Error: The process '/usr/bin/git' failed with exit code 128
How can I fix this issue so I can commit my site?