I have a php project that uses composer for package management. One of the packages is another project belonging to the same repo. I have a need to commit my entire vendor folder, but I want to ignore the .git folder in the sub-project so that it doesn't get treated like a submodule.
So far I have had no success. Things I've already tried:
vendor/.git
vendor/**/.git/
google search
stack overflow search
Here's what the sub-project folder looks like in GitLab. Instead of the files, it's just some kind of reference.