Skip to content

Instantly share code, notes, and snippets.

@ritz078
Created February 25, 2015 16:29
Show Gist options
  • Save ritz078/ff756cdaa8d4d486e436 to your computer and use it in GitHub Desktop.
Save ritz078/ff756cdaa8d4d486e436 to your computer and use it in GitHub Desktop.
git clone github.com/user/repository.git
# Clone repository
cd repository
#Create an orpan branch named "gh-pages"
git checkout --orphan gh-pages
#remove all files
git rm -rf .
rm '.gitignore'
echo "My Page" > index.html
git add index.html
git commit -a -m "First pages commit"
git push origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment