Skip to content

Instantly share code, notes, and snippets.

@mandulaj
Created April 1, 2015 16:19
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 mandulaj/89ddb5a1d2d4cbc31f0b to your computer and use it in GitHub Desktop.
Save mandulaj/89ddb5a1d2d4cbc31f0b to your computer and use it in GitHub Desktop.
Git deployment to gh-pages
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