I have a repository with a project, which contains several plugins. Plugins are added to the project as git submodules. Everything work okay, but the project may change some files in plugins while we work with it. Before we tracked those files inside submodules, but when we started to add plugins in different projects, this became a problem, as we often get conflicts with these changed files.
We decided to stop tracking these files in submodules, and instead track them in projects repos. But there is a problem. When I tried to track plugin files in main project, I got an error:
$ git add -f Plugins/**/Binaries/Win64/*.modules
fatal: Pathspec 'Plugins/AnalyticsTransport/Binaries/Win64/UE4Editor.modules' is in submodule 'Plugins/AnalyticsTransport'
Overall structure I want to achieve:
/ProjectFolder
file1.txt
file2.txt
/PluginSubmoduleFolder
/pluginfile1.txt
/pluginfile_dynam.txt # ignored file in submodule, which I want to track in Project repo
So, is it possible to achieve this in git? Is there any workaround, which will fix the error and start track files of submodules in main project?