When I try to add a submodule via
git submodule add git@domian:repo.git contact
I get the following message:
The following path is ignored by one of your .gitignore files:
contact
Use -f if you really want to add it.
Here is my .gitignore
:
# Ignore everything
*
# But not these files:
!*.py
!*.md
!*.gitignore
!.gitmodules
!contact/
It is resolved by using the suggested -f
option, but I am curious why the !contact/
entry in .gitignore
does not alleviate the problem.