This blog post covers how recreate a local repository of your Octopress blog. I needed to figure out how to do this so that I could update my blog from both my personal desktop and my laptop.
How Octopress Works
Octopress repositories have two branches,
master. The source branch contains the files that are used to generate the blog and the
master contains the blog itself.
When the local folders are initially configured according to the Octopress Setup Guide, the
master branch is stored in a subfolder named
_deploy. Since the folder name begins with an underscore, it is ignored when you
git push origin source. Instead, the
master branch (which contains your blog posts) gets updated when you
Recreating an Octopress repository
To recreate the local directory structure of an existing Octopress blog, follow these instructions.
First you will need to clone the
source branch to a local octopress folder.
Then clone the
master branch to the
Then run the rake installation to configure everything
It will prompt you for your repository URL.
You are now setup with a new local copy of your existing Octopress blog.
Pushing changes from two different machines
If you want to blog from more than one computer, you need to make sure that you push everything before switching computers. From the first machine do the following whenever you’ve made changes:
Then on the second machine, you will need to pull down those changes.