How do I create separate Git repositories for web applications that live in shared directories so I can deploy each to production via GitHub? The web application setups are common convention, so I'm surprised if there is not a way to accomplish this.
For each application, the index file and assets live in their respective public_html directory:
/home/user/public_html/app1
/home/user/public_html/app2
/home/user/public_html/app3
The application files for each website live in their respective upper level directory:
/home/user/app1
/home/user/app2
/home/user/app3
So where to run git init to have a repo for each application? Here are the challenges:
git initin the"user"directory will create a single repo for all the applicationsgit initin"/home/user/public_html/app1"will not include application files in"/home/user/app1"git initin"/home/user/app1"will not include index and assets in"/home/user/public_html/app1"
NOTE: This question was massively edited to use non-IIS terminology in hopes of better conveying the question.