Created
November 1, 2015 17:17
-
-
Save bitmori/b9da76aa3f9573e80f50 to your computer and use it in GitHub Desktop.
create repo 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
| $ git clone git@github.com:neonmori/repo.git | |
| $ cd repo | |
| $ git checkout --orphan gh-pages | |
| # Creates our branch, without any parents (it's an orphan!) | |
| # Switched to a new branch 'gh-pages' | |
| $ git rm -rf . | |
| # Remove all files from the old working tree | |
| # rm 'blah blah' | |
| **copy files to the directory | |
| $ git add . | |
| $ 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