Created
April 30, 2012 20:46
-
-
Save balupton/2562534 to your computer and use it in GitHub Desktop.
Bash function to fix your github pages when github forgets that they exist. Add to your .bashrc file.
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
# Fix Github Pages | |
# Usage: fgp YOUR-GITHUB-PROJECTS-SSH-REPO-URL | |
function fgp { | |
git clone $1 fixit | |
cd fixit | |
git checkout gh-pages | |
git push origin :gh-pages | |
git push origin --all | |
cd .. | |
rm -Rf fixit | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment