Mainly following Alexandre Rademaker's guide.
- Checkout to
source
branch, where we write things with a custom plugin.
git checkout source
- Writing things,
commit
andpush
the changes - Build site into
_site
folder,_site
folder should be in the.gitignore
of thesource
branch
bundle exec jekyll serve
- Change to
master
branch, add.nojekyll
as oneinclude
in 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.