解决Hexo deploy失败

Hexo使用hexo d
出现以下错误

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(node:2616) [DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
INFO Copying files from extend dirs...
fatal: Not a git repository (or any of the parent directories): .git
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: fatal: Not a git repository (or any of the parent directories): .git

at ChildProcess.<anonymous> (A:\hexo\node_modules\hexo-util\lib\spawn.js:37:17)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at ChildProcess.cp.emit (A:\hexo\node_modules\cross-spawn\lib\enoent.js:40:29)
at maybeClose (internal/child_process.js:897:16)
at Socket.stream.socket.on (internal/child_process.js:340:11)
at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7)

删掉根目录下的文件夹:.deploy_git,重新deploy就可以了。

文章目录
|