I have a PHP web app I want to bundle into a Git repository on GitHub, but I’m unclear how because the user interface is in the webroot but the models, controllers, storage, and so forth are in a folder outside the webroot for security purposes. I.e. it looks like:
C:/inetpub
|—App_code_directory
|—Lots_of_unwanted_directories
|—wwwroot
|—App_interface_directory
|—Lots_of_unwanted_directories
Can I build a repository directly from the two App directories? Do I need to base it off inetpub and just create a huge .gitignore
file? This is obviously a common application architecture, but I haven’t been able to phrase my web searches in a way that will yield answers.
UPDATE: I added an answer below showing how I did it, which was a more efficient .gitignore
file than I'd originally envisioned.