我是章鱼新手,也是git/github的新手。
我在本地克隆(installed/setup)章鱼回购:
git clone git://github.com/imathis/octopress.git sitename
cd sitename
bundle install
rake install酷-所以现在我有了章鱼的来源和我的本地驱动器上的一个骨架网站。
问题1-更新
根据docs,我应该能够通过以下方式更新最新的章鱼变化:
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创造一个复制,并把我的改变推到那里..。但同样,我不确定这是否正确。如有任何建议,将不胜感激。
发布于 2013-09-12 14:33:15
对问题2的答复:
章鱼资源库有两个分支,源和主。源分支包含用于生成博客的文件,母版包含博客本身(您的帖子,等等)。
当最初根据Octopress Setup Guide配置本地文件夹时,主分支存储在一个名为“_deploy”的子文件夹中。由于文件夹名以下划线开头,所以当您使用git push origin source时它将被忽略。相反,当您rake deploy时,主分支(它包含您的博客文章)将被更新。
您可能会发现this blog post很有用。
发布于 2013-09-09 12:09:14
在回购中应该有一个名为octopress的远程程序来执行以下操作:
[sitename]$ git pull octopress master尝试添加一个名为octopress的远程设备,并将其指向https://github.com/imathis/octopress.git
git remote add octopress github.com/imathis/octopress.git发布于 2013-09-09 16:03:36
章鱼的文档在一些地方有点松懈。它描述了当您使用github页面作为部署时,使章鱼远程:http://octopress.org/docs/deploying/github/。
这个信息应该(我认为)是预先加起来的,因为大多数人可能想要在他们自己的名为origin的远程回购中维护他们的博客。
https://stackoverflow.com/questions/18697681
复制相似问题