Last active
December 17, 2017 21:02
-
-
Save ryanburnette/f057971d835918a97a73 to your computer and use it in GitHub Desktop.
Deploy A Subdirectory To A Git Branch http://ryanburnette.com/blog/deploy-to-another-branch/
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
#!/usr/bin/env bash | |
git add build -f | |
git commit -m "deploy" | |
git push origin `git subtree split --prefix build master`:gh-pages --force | |
git reset HEAD~1 --hard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment