Scenario: As the project currently exists, master
and gh-pages
are completely separate (gh-pages
started as an orphan, doesn't share any code with master
). The gh-pages
branch has grown to include javascript code to run a client-side simulation.
At this point, it makes sense to move the simulation code to master
(it's now a feature of the project, unit testing, central location, etc).
How could I automatically push certain files from master
to specified locations in gh-pages
?
Or, more generally, how would you manage this scenario?