I am working on a project that I deploy both on gh-pages and as an android application using cordova/phone gap.
http://github.com/derekmc/html-sandbox
Currently, the code for both deployments is very similar and maintaining separate branches has not been a problem.
However, I recently tried to create a deeper file organization, but phonegapbuild didn't include the files from subdirectories.
I am afraid that to get this to work I am going to have to organize the files in the two branches differently, and move everything in the phonegap branch into a www folder.
I'm not a git expert, but in researching the problem, it appears this will complicate merging between the two branches.
All I found was this question: git merge: apply changes to code that moved to a different file
Is there a practical way to maintain parallel branches with different file organization? What would be the best way to do this?
Is there something I could do to keep the file organization of the two deployments the same?