I know how to "synchronize" two branches (i.e. the gh-pages branch is updated everytime the master is updated).
What I would like is to sinchronize only a certain directory of master to the gh-pages branch. To be clear, that's what I would like to achieve:
master:
+-- some
|
+-- file
|
+-- here
|
+-- dist/
|
+-- some_other
|
+-- dist_file
gh-pages:
+-- some_other
|
+-- dist_file
In other words, I'd like to have gh-pages updated as the dist/ directory of master every time master gets pushed.
Is it feasible?