octopress - rake gen_deploy 在 Octopress 中被拒绝

标签 octopress

我在 GitHub Pages 中安装了 Octopress。

我克隆了存储库。
$ git clone git@github.com:my-name/my-name.github.io.git$ git checkout source

$ rake setup_github_pages
我输入了我的存储库名称。


$ rake gen_deploy
我有错误
! [rejected] master -> master (non-fast-forward)
我的解决方案

我解决了这个问题,在 GitHub 中删除 my-name.github.io.git,并创建同名存储库和
$ rake gen_deploy
但我不想删除存储库

最好的解决方案是什么?

最佳答案

在 github 页面上托管我的 Octopress 博客时,我遇到了同样的问题。我谷歌了很多,终于解决了这个问题。

换个目录就好了

cd octopress/_deploy
git pull origin master
cd ..
rake deploy

然后就修好了。

关于octopress - rake gen_deploy 在 Octopress 中被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17609453/

相关文章:

git - 无法使用 octopress 部署到 Github Pages

html - Octopress site.title 没有改变?

octopress - 如何重命名或删除新的 octopress 帖子?

jekyll - 如何将 Jekyll 主题转换为 Octopress 主题

ruby - 用 db 扩展 jekyll/octopress?

heroku - 重定向 URL 以在 Sinatra 中添加尾部斜杠

html - 如何在我的 octopress 博客中添加新页面

github - 在没有源分支的新计算机上工作 Octopress 博客?