Skip to content

Instantly share code, notes, and snippets.

@balupton
Created April 30, 2012 20:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balupton/2562534 to your computer and use it in GitHub Desktop.
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.
# 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