Created
April 1, 2015 16:19
-
-
Save mandulaj/89ddb5a1d2d4cbc31f0b to your computer and use it in GitHub Desktop.
Git deployment to gh-pages
This file contains 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
BUILD_DIR=build | |
git add -f $BUILD_DIR | |
git commit -m "git deployment" | |
git push origin `git subtree split --prefix $BUILD_DIR master`:gh-pages --force | |
git reset HEAD^ | |
git reset $BUILD_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment