Skip to content

Instantly share code, notes, and snippets.

@davidhellsing
Created May 6, 2014 05:03
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 davidhellsing/b7deb968e450f1d87d46 to your computer and use it in GitHub Desktop.
Save davidhellsing/b7deb968e450f1d87d46 to your computer and use it in GitHub Desktop.
Deploy dist directory to gh-pages
#!/bin/bash
git add .
git commit -am 'master deploy'
git checkout gh-pages
git checkout master -- dist
rsync -a -v dist/ ./
rm -rf dist
git add .
git commit -am 'page deploy'
git push
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment