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
-
-
Save JPGITHUB1519/7d3ad328c6e2fb13412b5110e498a327 to your computer and use it in GitHub Desktop.
If you need to force push an subtree
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Github Pages Branch Force Push