File —> Settings---->Version Control---->Git,配置Path to Git executable路径 Tools —> Terminal,配置shell path路径 重启IDEA