# 安装rvm, ruby, bundler 略 # 克隆octopress $ git clone git://github.com/imathis/octopress.git octopress $ gem install bundler $ bundle install
# 安装主题 $ rake install # 设置github帐号 $ rake setup_github_pages # 同步Github上已发布的博客 $ git checkout .
# 干掉本机生成的文件, 使用github上的覆盖本机文件 $ rm -rf saas source $ git pull origin source # 可能有conflict, 自己merge下 $ rake new_post[new_post] # 新增post
$ rake generate # 生成内容(可略)
$ rake preview # 本地预览
$ rake deploy # 部署到Github