这是因为在idea中给i他没有配置执行路径 打开settings 选择git的安装路径 点击ok'就行 转载于:https://www.cnblogs.com/myworldfordata/p/11226304.html