I haven't tried submodules yet, but did You commited your submodule?
git add <something/>
adds your files (submodules?) only to stage index. If You want to commit
files added to stage index, You should commit them with:
git commit -m "your commit message"
Wysłano z telefonu.
31-08-2012 17:07, "Rui Gonçalves" <rui.goncal...@beubi.com> napisał(a):
> 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,
> 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
> To post to this group, send email to email@example.com.
> To unsubscribe from this group, send email to
> For more options, visit this group at
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at