-
-
Save jzsn2018/bac00a05ebe9bfd5cd705823871be7b5 to your computer and use it in GitHub Desktop.
Revisions
-
tduarte revised this gist
Oct 13, 2016 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ ``` 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 ``` -
tduarte created this gist
Oct 13, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ 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