Hexo无法部署

时间:2015-12-09 11:55:00

标签: git github hexo

我无法部署?当我在hexo server之后感谢hexo generate时,我可以看到应该的页面。但是当我感到hexo deploy它时 提示:

To https://github.com/gabygoole/gabygoole.github.io.git
 ! [remote rejected] master -> master (failed to lock)
error: failed to push some refs to 'https://github.com/gabygoole/gabygoole.githu                                                               b.io.git'
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/do                                                               cs/troubleshooting.html
Error: To https://github.com/gabygoole/gabygoole.github.io.git
 ! [remote rejected] master -> master (failed to lock)
error: failed to push some refs to 'https://github.com/gabygoole/gabygoole.githu                                                               b.io.git'


at ChildProcess.<anonymous> (C:\blog\node_modules\hexo-deployer-git\node_mod                                                               ules\hexo-util\lib\spawn.js:42:17)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

1 个答案:

答案 0 :(得分:0)

事实是,我在GithHub远程主分支中添加了一个文件。但是我没有在本地添加文件。当我强制推送到远程主分支时,这意味着我删除了文件。所以,只需添加文件在本地,并推送到远程master.everything将没事!