Hi there!

I'm trying to add a submodule that already existed (different git remote 
repository). As I didn't searched before how to do it correctly, I think 
I've messed up my repository and I need some help to fix it again.
I've already deleted all the relevant sections from the .gitmodules and 
.git/config regarding the submodules I want to delete. I've also verified 
that there is not modules directory inside my .git/ directory.

However, when I run the command *git rm --cached path_to_submodule*(without 
trailing space), the following message is displayed:
*fatal: pathspec 'path_to_submodule' did not match any files*

As the previous command fails, when I try to add again the same submodule 
with the new definitions, running the command *git submodule add 
gituser@host:repo.git*, this is the displayed message:
*'repo' already exists in the index*

How can I solve this problem?
Thanks in advance for the help, 
Regards!


-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/cFdmzv0HeZAJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to