Last active
December 15, 2015 09:09
-
-
Save xcambar/5236620 to your computer and use it in GitHub Desktop.
ZSH Function to deploy to Github Pages
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
# | |
# Usage: | |
# ghp BUILD_DIR GIT_REPO_URL | |
# | |
function ghp () { | |
cd $0 | |
git init | |
git add -A | |
git remote add origin $1 | |
git commit -m "Generated at $(date)" | |
git push origin master:gh-pages | |
rm -fr .git | |
echo "Successful Deploy" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment