Mainly following Alexandre Rademaker's guide.
- Checkout to
sourcebranch, where we write things with a custom plugin.
git checkout source- Writing things,
commitandpushthe changes - Build site into
_sitefolder,_sitefolder should be in the.gitignoreof thesourcebranch
bundle exec jekyll serve
- Change to
masterbranch, add.nojekyllas oneincludein the_config.yml
git checkout master
cp -r _site/* . && rm -rf _site/ && touch .nojekyll
git add .
git commit
git push --all origin
In another guide by Drew Silcock, the _site folder itself is linked the remote origin/master, however, as of right now, --set-upstream is not workin in git anymore.