Created
April 12, 2020 15:43
-
-
Save carlosdelfino/2115a60bd90e7fcb47cda19591d617b3 to your computer and use it in GitHub Desktop.
Formas de manter GH-Pages com Git-SubTree
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
## Abaixo os comandos para manter o Github Pages atualizado considerando que está usando o GitBook | |
git checkout master && git pull # procure manter o branch master sempre atualizado | |
git subtree split --prefix _books -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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment