【Hexo】deploy出错的解决方法
1、ERROR Deployer not found: git
执行npm install hexo-deployer-git --save
2、$ hexo d INFO Deploying: git INFO Clearing .deploy_git folder... INFO Copying files from public folder... 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): .gitat ChildProcess.<anonymous> (E:\web\Hexo\node_modules\hexo-util\lib\spawn.js:37:17)at emitTwo (events.js:106:13)at ChildProcess.emit (events.js:191:7)at ChildProcess.cp.emit (E:\web\Hexo\node_modules\cross-spawn\lib\enoent.js:40:29)at maybeClose (internal/child_process.js:850:16)at Socket.<anonymous> (internal/child_process.js:323:11)at emitOne (events.js:96:13)at Socket.emit (events.js:188:7)at Pipe._handle.close [as _onclose] (net.js:492:12) FATAL fatal: Not a git repository (or any of the parent directories): .gitError: fatal: Not a git repository (or any of the parent directories): .gitat ChildProcess.<anonymous> (E:\web\Hexo\node_modules\hexo-util\lib\spawn.js:37:17)at emitTwo (events.js:106:13)at ChildProcess.emit (events.js:191:7)at ChildProcess.cp.emit (E:\web\Hexo\node_modules\cross-spawn\lib\enoent.js:40:29)at maybeClose (internal/child_process.js:850:16)at Socket.<anonymous> (internal/child_process.js:323:11)at emitOne (events.js:96:13)at Socket.emit (events.js:188:7)at Pipe._handle.close [as _onclose] (net.js:492:12)
配置Deployment首先,你需要为自己配置身份信息,打开命令行,然后输入:
- git config --global user.name "yourname"
- git config --global user.email "youremail"
3.以上做完还不行
删掉根目录下的文件夹:.deploy_git,重新deploy就可以了。
以上是在SSH配置好的前提下
转载于:https://www.cnblogs.com/tenderwx/p/5783432.html
【Hexo】deploy出错的解决方法相关推荐
- Eclipse 内部启动 Tomcat,浏览器访问出错的解决方法
Eclipse 内部启动 Tomcat,浏览器访问出错的解决方法 在Eclipse里面配置好Tomcat服务器后,start server成功后,在浏览器输入http://localhost:8080 ...
- ”dpkg: 处理归档 /var/cache/apt/archives/XXXXXX(--unpack)时出错“的解决方法
"dpkg: 处理归档 /var/cache/apt/archives/XXXXXX(--unpack)时出错"的解决方法 参考文章: (1)"dpkg: 处理归档 /v ...
- Python3中使用map()结果出错的解决方法
Python3中使用map()结果出错的解决方法 2016年10月19日 16:18:34 阅读数:2783 在Python2中使用map()会返回一个列表,效果如下: >>> a= ...
- oracle 查看并行数据库,Oracle数据库并行查询出错的解决方法
Oracle的并行查询是使用多个操作系统级别的Server Process来同时完成一个SQL查询,本文讲解Oracle数据库并行查询出错的解决方法如下: 1.错误描述 ORA-12801: 并行查询 ...
- php的strpos不支持数字,php使用strpos判断字符串中数字类型子字符串出错的解决方法 原创...
php使用strpos判断字符串中数字类型子字符串出错的解决方法 原创 这里有新鲜出炉的 PHP 面向对象编程,程序狗速度看过来! PHP 开源脚本语言 PHP(外文名: Hypertext Prep ...
- oracle并行查询结果不唯一,Oracle数据库并行查询出错的解决方法
Oracle的并行查询是使用多个操作系统级别的Server Process来同时完成一个SQL查询,本文讲解Oracle数据库并行查询出错的解决方法如下: 1.错误描述 sql;"> ...
- Unity 生成APK 出错的解决方法
Unity 生成APK 出错的解决方法 参考文章: (1)Unity 生成APK 出错的解决方法 (2)https://www.cnblogs.com/laomanong/p/5783599.html ...
- Vs2012使用strcpy出错之解决方法
Vs2012使用strcpy出错之解决方法 参考文章: (1)Vs2012使用strcpy出错之解决方法 (2)https://www.cnblogs.com/Robert_Hu/p/3208141. ...
- Numpy安装+导入出错的解决方法
Numpy安装+导入出错的解决方法 参考文章: (1)Numpy安装+导入出错的解决方法 (2)https://www.cnblogs.com/danscarlett/p/7127490.html 备 ...
最新文章
- 简单介绍常用hadoop dfs命令
- 【转】iOS-Core-Animation-Advanced-Techniques(六)
- word2vec原理(二):基于Hierarchical Softmax的模型
- pycharm奇技淫巧 直接通过代码输出函数 refactor —— extract method
- [MATLAB学习笔记]textread读取文本文件中的数据;写入多个输出
- Spring AOP方法分析
- python主函数入口_python类 + mian()函数
- mysqlbinlog: unknown variable 'default-character-set=gbk'错误
- CAD迷你看图v4.4.3 for Mac 小巧而全面的CAD看图工具
- jwplayer视频播放问题集
- 中小学教师资格证报名入口 出现请添加兼容性站点怎么办?
- Unity制作360度全景
- iOS 常用快捷键 摆脱菜鸟!!
- 程序员用学位证吗_如何成为没有学位或新兵训练的开发人员
- 微波炉的维修(2)(转自谢工摆渡的博客)
- 全新UI运营级在线客服系统源码+无授权/带教程
- android 放大镜 Magnifier 简单实现
- IoT:OneNET - 中国移动物联网平台介绍
- Android——仿京东秒杀
- 斯诺克台球比赛规则 (Snooker)