Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

之前还能正常hexo d,但是这两天一直报错 #107

Closed
ljw-bigtail opened this issue Dec 22, 2016 · 2 comments
Closed

之前还能正常hexo d,但是这两天一直报错 #107

ljw-bigtail opened this issue Dec 22, 2016 · 2 comments

Comments

@ljw-bigtail
Copy link

ljw-bigtail commented Dec 22, 2016

这是报错信息

$ hexo d
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
fatal: bad config line 1 in file .git/config
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/do                        cs/troubleshooting.html
Error: fatal: bad config line 1 in file .git/config

    at ChildProcess.<anonymous> (D:\My Blog By Hexo\node_modules\hexo-util\lib\s                        pawn.js:37:17)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at ChildProcess.cp.emit (D:\My Blog By Hexo\node_modules\cross-spawn\lib\eno                        ent.js:40:29)
    at maybeClose (internal/child_process.js:850:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
FATAL fatal: bad config line 1 in file .git/config

Error: fatal: bad config line 1 in file .git/config

    at ChildProcess.<anonymous> (D:\My Blog By Hexo\node_modules\hexo-util\lib\s                        pawn.js:37:17)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at ChildProcess.cp.emit (D:\My Blog By Hexo\node_modules\cross-spawn\lib\eno                        ent.js:40:29)
    at maybeClose (internal/child_process.js:850:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)

请问这个应该怎么解决?谢谢。

@hainuo
Copy link

hainuo commented Jan 8, 2017

尝试使用hexo clean 试试

@ljw-bigtail
Copy link
Author

@hainuo ,谢谢你,我试过这种方法了,但是还不可以。
最终的解决办法是:通过备份的文件,还原对应文件夹的信息就可以了,因为不知道什么时候改动了一些配置,导致了这个错误。

@iissnan iissnan closed this as completed Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants