github - How to push only specific folders from Master branch to gh-pages branch? -
i'm new github , web development in general. have of project files on master branch , want push files needed make page run on gh-pages. how tell push files new gh-pages branch? example, when use gulp or grunt makes folder rendered site previewing site. how push contents site folder gh-pages without adding of other unecessary on master branch?
i've been using jekyll because can still push of files onto gh-pages , still works. have 2 repositories lot of projects. 1 repository has of source files , other repository has files need push working site onto gh-pages. want clean github page more organized.
thank you.
if using nodejs
, npm
can use gh-pages
package command line publish gh-pages
branch specific directory. gh-pages
package has command line utility.
installing package creates gh-pages command line utility. run gh-pages --help see list of supported options.
note: mentioned using gulp
, there npm
package called gulp-gh-pages
use create gulp
tasks put deploy workflow.
Comments
Post a Comment