Skip to content

Instantly share code, notes, and snippets.

@bitmori
Created November 1, 2015 17:17
Show Gist options
  • Select an option

  • Save bitmori/b9da76aa3f9573e80f50 to your computer and use it in GitHub Desktop.

Select an option

Save bitmori/b9da76aa3f9573e80f50 to your computer and use it in GitHub Desktop.
create repo github pages
$ 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