Created
August 27, 2016 14:58
-
-
Save sword-jin/b7f7681addfffc752db794a0841c4e62 to your computer and use it in GitHub Desktop.
github page deploy
This file contains hidden or 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
#!/bin/bash | |
git stash save | |
git checkout -B gh-pages | |
git add -f build | |
git commit -am "Rebuild website" | |
git filter-branch -f --prune-empty --subdirectory-filter build | |
git push -f origin gh-pages | |
git checkout - | |
git stash pop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment