Skip to content

Instantly share code, notes, and snippets.

@mykeels
Created June 7, 2020 01:39
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 mykeels/88e42d43b19b8781c73f16aadd03837f to your computer and use it in GitHub Desktop.
Save mykeels/88e42d43b19b8781c73f16aadd03837f to your computer and use it in GitHub Desktop.
Will deploy to gh-pages branch from master
git branch -f gh-pages
git checkout gh-pages
git reset --hard origin/master
yarn build
cp -r build/* .
git add -A .
git commit -a -m 'push to gh-pages'
git push origin gh-pages --force
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment