2013-06-02
Tags: Octopress, GithubPages
git config --global push.default currentgit branch --set-upstream source origin/sourcerake new_post["post name"]
source/_posts/YYYY-MM-DD-post-name.markdownrake new_page[about]
rake new_page[about/index.markdown] => ${SITE}/about/rake generate # Generates posts and pages into the public directoryrake watch # Watches source/ and sass/ for changes and regeneratesrake preview # Watches, and mounts a webserver at http://localhost:4000source
rake new_post["My Post"] # may need to do in correct shell (for me, bash instead of zsh)./source/_posts/YYYY-MM-DD-my-post.markdownrake generate; rake watch; rake preview until satisfied)git add .; git commit -m "My Post"git push origin sourcerake deploy