I'm new to Octopress and relatively new to git/github.
I cloned (installed/setup) the Octopress repo locally:
git clone git://github.com/imathis/octopress.git sitename
cd sitename
bundle install
rake install
Cool - so now I have the source to Octopress and a skeleton site on my local drive.
According to the docs I should be able to update to the latest Octopress changes via:
git pull octopress master # Get the latest Octopress
bundle install # Keep gems updated
rake update_source # update the template's source
rake update_style # update the template's style
but this results in an error:
[sitename]$ git pull octopress master
fatal: 'octopress' does not appear to be a git repository
fatal: Could not read from remote repository.
Why is this failing?
Now I need to create my own github repo for the assets that I create, correct? If so, do I store everything there, or just the things that are specific to my blog (posts, pages, etc.)? My guess is that I have to create a repro at github and push my changes there... but again, I'm not sure if that is correct. Any suggestions would be much appreciated.
In response to question 2:
Octopress repositories have two branches, source and master. The source branch contains the files that are used to generate the blog and the master contains the blog itself (your posts, etc.).
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 rake deploy
.
You might find this blog post helpful.
You should have a remote named octopress
in your repo to do this:
[sitename]$ git pull octopress master
Try adding a remote named octopress
and point it to https://github.com/imathis/octopress.git:
git remote add octopress github.com/imathis/octopress.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With