搭建 hexo,在执行 hexo deploy 后,出现 error deployer not found:git 的错误

出现这种错误有两种解决方案:
(1)如果没有安装git需要安装,搭建 hexo,在执行 hexo deploy 后,出现 error deployer not found:git 的错误
(2)检查是否在环境变量path中配置了git的路径
D:\program files\Git\bin;
D:\program files\Git\mingw64\libexec\git-core;
通过上述的步骤就可以解决了。