我无法部署?当我在hexo generate之后执行hexo server时,我可以看到当我执行hexo deploy It提示时应该执行be.But的页面:
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)发布于 2015-12-09 20:41:49
事实是,我在GithHub远程主branch.But中添加了一个文件,我没有添加文件locally.When,我强制推送到远程主分支,这意味着我删除了file.So,只需在本地添加文件,然后推送到远程master.everything就可以了!
https://stackoverflow.com/questions/34178224
复制相似问题