I am currently using GitHub pages to build and host a personal website. However, I'm slightly put off by seeming lack of ability to develop subprojects individually while still seeing the result on the master branch.
To clarify, here's what I want to be able to do:
In the repository root I have a landing page (index.html
) and several subdirectories including some directories for global files (scripts, stylesheets, etc). Now, let's say I want to develop a project called "foo" - a web-application that will sit on mysite.github.io/foo
. Is it possible for me to develop within the foo
subdirectory/subproject without immediately committing to master (a la branches)?
I've done some research and discovered subtrees, but they do not work quite the way I want. Ideally (for my purposes), I would be able to develop within a subtree, make commits, and see the changes on my website, all while committing to the subtree's "master" branch instead of the main project's master branch.
Is such a thing possible, or am I stuck with dev branches that I can only test locally? (Local testing is certainly possible, I'm just looking to see if there's another option).