0

我无法部署?当我执行hexo serverhexo 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)
4

1 回答 1

0

事实是,我在 GithHub 远程 master 分支中添加了一个文件。但是我没有在本地添加文件。当我强制推送到远程 master 分支时,这意味着我删除了文件。所以,只需在本地添加文件,然后推送到远程master。一切都会好起来的!

于 2015-12-09T12:41:48.713 回答