Created
February 25, 2015 16:29
-
-
Save ritz078/ff756cdaa8d4d486e436 to your computer and use it in GitHub Desktop.
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
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