Locally I have a folder of a big project that contains many folders of sub projects.
I have 2 Git Repositories:
Big Project Repo (bitbucket) - contains all sub projects - in this repo I save all source files of the project and exclude all the compiled files. This repo serves as a backup of the source code.
Sub Project A Repo (heroku) - nested in the big project's folder, this is a production repo where I save compiled files only of Sub Project A and exclude all source files.
Sub Project A Repo is pushed as expected, no problems there.
Big Project Repo on the other hand, is pushed mostly as expected, with the exception of Sub Project A's folder being referred to by a gitlink instead of saving the actual files.
I'd like to store in the big project repo the actual files of sub project A folder, treating sub project A as a regular folder rather than a repo in this case.
Some searching brought up git submodules, but after reading a little about them I get the impression that the files will still not be stored the way I want that way, it'll simply take into account the reference to the nested repo when cloning the big repo. The nested repo's files will still not be stored in the big repo.
Let me know if I got this right and your thoughts on how to solve this.