需要idea先配置git:
File --> Setting --> Version Control ---> Git 设置path to git executable 设置git.exe 位置:D:\Dev\Program\Git\bin\git.exe
Git-idea学习
原文:https://www.cnblogs.com/zhongxiaoze/p/12956095.html