I was adding a directory in Git to create a new package. I cloned the src/
which I was going to include in my repository, and I think I forgot to rm -rf src/.git
, so somehow post-commit, I have a blank directory with no source, and what appears to be a broken submodule.
I'd like to delete the src/
folder and re-create the directory and add the source files manually, but I'm getting errors.
git rm -f src/
gives me:
fatal: pathspec 'package/src/' did not match any files
Running git submodule
gives:
No submodule mapping found in .gitmodules for path 'package/src/'
I have no .gitmodules
file, and I don't want this to be a submodule. I'd just like it to delete this directory so I can re-create it and put the source contents in.