【发布时间】:2013-11-06 07:25:36
【问题描述】:
我正在尝试将 octopress 推送到 github 页面,到目前为止一切正常,但是当我在显示 octopress 文件后执行 rake deploy 命令时,出现以下错误
To git@github.com:rukshn/rukshn.github.io.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:rukshn/rukshn.github.io.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
有什么问题?
【问题讨论】:
-
@SLaks 出了什么问题以及如何解决它
-
查看 Octopress Rakefile,它应该在推送之前拉取任何更改,但似乎这还没有发生。您是否尝试过按照错误消息的提示先运行
git pull? -
确实拉然后又做了'rake deploy'并且仍然得到同样的错误所以我再次拉然后显示一切都是最新的
-
我只是删除了
master分支,然后又删除了rake deploy