【发布时间】:2013-09-09 11:55:34
【问题描述】:
我是 Octopress 的新手,对 git/github 也比较陌生。
我在本地克隆 (installed/setup) Octopress 存储库:
git clone git://github.com/imathis/octopress.git sitename
cd sitename
bundle install
rake install
酷 - 现在我有了 Octopress 的源代码和本地驱动器上的骨架站点。
问题 1 - 更新
根据docs,我应该能够通过以下方式更新到最新的 Octopress 更改:
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
但这会导致错误:
[sitename]$ git pull octopress master
fatal: 'octopress' does not appear to be a git repository
fatal: Could not read from remote repository.
为什么会失败?
问题 2 - “我的”东西在哪里?
现在我需要为我创建的资产创建自己的 github 存储库,对吗?如果是这样,我是在其中存储所有内容,还是只存储特定于我的博客的内容(帖子、页面等)?我的猜测是我必须在 github 上创建一个 repro 并将我的更改推送到那里......但同样,我不确定这是否正确。任何建议将不胜感激。
【问题讨论】:
-
在
git pull octopress master中,是否也应该像在安装中那样用站点名称替换那个八角机?