Skip to content

Instantly share code, notes, and snippets.

@sbussard sbussard/
Last active Jul 12, 2016

What would you like to do?
push build output to github pages
#!/usr/bin/env bash
git checkout -b _build_staging_
git add -f $BUILD_DIR
git commit -am add_build_ouput
git subtree split --prefix $BUILD_DIR -b gh-pages
git push origin gh-pages -f
git checkout -
git branch -D gh-pages _build_staging_

This comment has been minimized.

Copy link
Owner Author

commented Jul 12, 2016

CAUTION: this will delete your gh-pages branch if you have one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.