I have a repository where I am ignoring a whole directory, however there is an individual directory inside there that I want to be a submodule. So my git ignore file has the line,
wp-content/plugins/
I was planning on adding the line
!wp-content/plugins/my-plugin
So it would then track only the submodule code, correct?
So I attempted to add it as a submodule and was given a "use -f flag" message. So I did. Now git status shows that plugin even though the directory is still ignored.
Does the -f force it to override the git ignore directives? And if so, can I then just omit the ! like in my ignore file and commit it all?
Thank you.