2013年1月30日 星期三

github + octopuses issue

1. install 

http://islamismailov.com/blog/2012/12/31/octopress-on-mac-os-x-with-homebrew/

 

2. setup 

http://zerodie.github.com/blog/2012/01/19/octopress-github-pages/

 

3.troubleshooting


http://stackoverflow.com/questions/12060903/github-error-repository-not-found-when-installing-octopress

assuming you have installed ruby 1.9.3

  1. create repo on github as username.github.com
  2. cd your_working_dir
  3. rake install / rake install['theme_name']
  4. rake setup_github_pages this will ask to write repo name. Do not add ".git" e.g. git@github.com:username/username.github.com this is correct
  5. now add your remote repo, check available repo using git remote -v octopress git://github.com/imathis/octopress.git (fetch) octopress git://github.com/imathis/octopress.git (push)
  6. add your repo git remote add origin git@github.com:username/username.github.com.git
  7. Rename branch master to source, because github pages publishes only source branch git branch
    • master git branch -m master source git branch
    • source
  8. time to preview rake preview open browser and goto localhost:4000
  9. if all is fine then push to github
  10. rake generate git add . git commit -m "first blog" git push origin source rake deploy

沒有留言:

How to restore a deleted onenote page

復原不小心誤刪的onenote