Skip to content

Instantly share code, notes, and snippets.

@carlosdelfino
Created April 12, 2020 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlosdelfino/2115a60bd90e7fcb47cda19591d617b3 to your computer and use it in GitHub Desktop.
Save carlosdelfino/2115a60bd90e7fcb47cda19591d617b3 to your computer and use it in GitHub Desktop.
Formas de manter GH-Pages com Git-SubTree
## 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