Octopress and github confusion
Asked Answered
A

3

8

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.

Question 1 - Updating

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?

Question 2 - Where does "my" stuff live?

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.

Airlee answered 9/9, 2013 at 11:55 Comment(1)
In git pull octopress master, should that octopress also be replaced with sitename, like in the installation?Sadiron
S
8

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.

Syntax answered 12/9, 2013 at 14:33 Comment(0)
A
4

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
Allisan answered 9/9, 2013 at 12:9 Comment(1)
"git remote add octopress github.com/imathis/octopress.git" added the remote so that now "git pull octopress master" seems to work. Wondering why this isn't part of the Octopress setup/install?Airlee
S
2

The octopress documentation is a bit lax in places. It describes making the octopress remote when you use github pages as the deployment: http://octopress.org/docs/deploying/github/

This info should (I think) be added up front, as most people will likely want to maintain their blog in their own remote repo named origin.

Southeasterly answered 9/9, 2013 at 16:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.