DEV Community

Discussion on: How to deploy React App to GitHub Pages

Collapse
 
gabrielmlinassi profile image
Gabriel Linassi

man this gh-pages package is pure magic. Super cool! Took all my suffer of deploying to gh pages. Before it I used to do stuff like track build folder into master branch and do a subtree to gh-pages branch. Like this:

git push origin --delete gh-pages &&
git branch -D gh-pages &&
git subtree split --prefix build -b gh-pages