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出错的解决方法相关推荐

  1. Eclipse 内部启动 Tomcat,浏览器访问出错的解决方法

    Eclipse 内部启动 Tomcat,浏览器访问出错的解决方法 在Eclipse里面配置好Tomcat服务器后,start server成功后,在浏览器输入http://localhost:8080 ...

  2. ”dpkg: 处理归档 /var/cache/apt/archives/XXXXXX(--unpack)时出错“的解决方法

    "dpkg: 处理归档 /var/cache/apt/archives/XXXXXX(--unpack)时出错"的解决方法 参考文章: (1)"dpkg: 处理归档 /v ...

  3. Python3中使用map()结果出错的解决方法

    Python3中使用map()结果出错的解决方法 2016年10月19日 16:18:34 阅读数:2783 在Python2中使用map()会返回一个列表,效果如下: >>> a= ...

  4. oracle 查看并行数据库,Oracle数据库并行查询出错的解决方法

    Oracle的并行查询是使用多个操作系统级别的Server Process来同时完成一个SQL查询,本文讲解Oracle数据库并行查询出错的解决方法如下: 1.错误描述 ORA-12801: 并行查询 ...

  5. php的strpos不支持数字,php使用strpos判断字符串中数字类型子字符串出错的解决方法 原创...

    php使用strpos判断字符串中数字类型子字符串出错的解决方法 原创 这里有新鲜出炉的 PHP 面向对象编程,程序狗速度看过来! PHP 开源脚本语言 PHP(外文名: Hypertext Prep ...

  6. oracle并行查询结果不唯一,Oracle数据库并行查询出错的解决方法

    Oracle的并行查询是使用多个操作系统级别的Server Process来同时完成一个SQL查询,本文讲解Oracle数据库并行查询出错的解决方法如下: 1.错误描述 sql;"> ...

  7. Unity 生成APK 出错的解决方法

    Unity 生成APK 出错的解决方法 参考文章: (1)Unity 生成APK 出错的解决方法 (2)https://www.cnblogs.com/laomanong/p/5783599.html ...

  8. Vs2012使用strcpy出错之解决方法

    Vs2012使用strcpy出错之解决方法 参考文章: (1)Vs2012使用strcpy出错之解决方法 (2)https://www.cnblogs.com/Robert_Hu/p/3208141. ...

  9. Numpy安装+导入出错的解决方法

    Numpy安装+导入出错的解决方法 参考文章: (1)Numpy安装+导入出错的解决方法 (2)https://www.cnblogs.com/danscarlett/p/7127490.html 备 ...

最新文章

  1. 简单介绍常用hadoop dfs命令
  2. 【转】iOS-Core-Animation-Advanced-Techniques(六)
  3. word2vec原理(二):基于Hierarchical Softmax的模型
  4. pycharm奇技淫巧 直接通过代码输出函数 refactor —— extract method
  5. [MATLAB学习笔记]textread读取文本文件中的数据;写入多个输出
  6. Spring AOP方法分析
  7. python主函数入口_python类 + mian()函数
  8. mysqlbinlog: unknown variable 'default-character-set=gbk'错误
  9. CAD迷你看图v4.4.3 for Mac 小巧而全面的CAD看图工具
  10. jwplayer视频播放问题集
  11. 中小学教师资格证报名入口 出现请添加兼容性站点怎么办?
  12. Unity制作360度全景
  13. iOS 常用快捷键 摆脱菜鸟!!
  14. 程序员用学位证吗_如何成为没有学位或新兵训练的开发人员
  15. 微波炉的维修(2)(转自谢工摆渡的博客)
  16. 全新UI运营级在线客服系统源码+无授权/带教程
  17. android 放大镜 Magnifier 简单实现
  18. IoT:OneNET - 中国移动物联网平台介绍
  19. Android——仿京东秒杀
  20. 斯诺克台球比赛规则 (Snooker)

热门文章

  1. 安装phpssdb扩展:
  2. html5标签属性大全_HTML5中video标签如何使用
  3. matlab im2double
  4. Linux(CentOS)挂载U盘、移动硬盘以及文件拷贝、备份
  5. STC用PCA测量脉宽_教你测量玉手镯圈号及如何轻松快速摘戴玉手镯?
  6. 分布式Matlab计算集群建立方法与Demo
  7. Vue刷新页面有哪几种方式
  8. 江西住建云实名认证怎么弄_王者荣耀无限时间怎么弄 2020年无限时间账号
  9. bigdecimal取小数部分_小数精度丢失问题分析和解决
  10. JavaScript实现继承的方式,不正确的是: