I currently have a repository within another. There is the main repository, which is a PhpStorm project, and a subfolder which is a separate repository. The subfolder is not to be committed into the main repository, therefore I added the foldername to .gitignore. This prevents PhpStorm from detecting changes in the sub-repository, and thus makes me unable to commit/push them. The main-repository works perfectly.
Is there a workflow that will allow me to work in such a manner? I could remove the entry in .gitignore and push to separate remotes, but I am worried there will be mix-ups.