我做了一个username.github.io
repo,并将我当前的 Octopress 博客文件推送到master
分支中,这样我就可以跟踪我对整个博客所做的更改。
接下来,我希望它出现在gh-pages
分支中,所以我使用了,rake setup_github_pages
然后git 拒绝了它,并显示以下消息:rake generate
rake deploy[gh-pages]
To https://github.com/username/username.github.io
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/username/username.github.io'
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.
## Github Pages deploy complete
cd -
我该如何解决这个问题?我只想将_deploy
文件夹放在分支gh-pages
中,其余的放在master
分支中。
这甚至可能吗?