Created
September 21, 2019 21:03
-
-
Save adalberth/dee34e5579e128a762ed917b687a1404 to your computer and use it in GitHub Desktop.
gh-pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Push | |
git subtree push --prefix dist origin gh-pages | |
### Force | |
git subtree split --prefix dist -b gh-pages; git push -f origin gh-pages:gh-pages; git branch -D gh-pages; | |
### Force (detailed) | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment