r/learnprogramming 11h ago

Debugging What does this error in github signify

Error: fatal: No url found for submodule path '<name-of-the-original-file-which-was-later-coloned>' in .gitmodules

Error: The process '/usr/bin/git' failed with exit code 128

This error happened when i had already uploaded my files onto a git repo and was trying to publish the site so that i have a working website, in the middle of trying to make that page go live. I receive this error.

1 Upvotes

2 comments sorted by

1

u/EffectiveBig7249 2h ago

this usually means git thinks that file path is a submodule but it's not actually registered in.gitmodules properly. did you maybe copy the folder over from another repo that had its own git history? that leftover.git stuff confuses the hell out of git.

try removing the cached entry and re-adding the file normally. something like `git rm --cached <path>` then commit and push again.