Skip to content

Instantly share code, notes, and snippets.

View jk195417's full-sized avatar

楊竑昕 jk195417

View GitHub Profile
@jk195417
jk195417 / publish-ghpages.md
Created January 4, 2018 13:13 — forked from tduarte/publish-ghpages.md
If you need to force push an subtree
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref