• PhpStorm中报 “Cannot run program git.exe, 系统找不到指定的文件” 


    http://blog.csdn.net/lamp_yang_3533/article/details/52003021

    在使用PhpStorm的GitHub或Git功能时,经常会出现以下错误信息:
    Cannot run program "git.exe": CreateProcess error=2, 系统找不到指定的文件。

    原因分析:
    • 电脑还未安装git客户端
    • 虽然安装了git客户端,但系统无法直接找到git.exe文件,即路径不完整

    解决方法:
    1. 从Github For Windows下载Windows版的Github客户端,并进行安装

    2. 配置 git 环境变量
    找到 git.exe 的安装目录,     

    如:C:UsersAdministratorAppDataLocalGitHubPortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0cmd

    将其配置到环境变量Path。

    如果不想设置环境变量,也可以直接在PhpStorm里,通过 Settings –> Version Control –> Git –> Path to Git executable设置,需设置完整路径(带上文件名),

    如:C:UsersAdministratorAppDataLocalGitHubPortableGit_d76a6a98c9315931ec4927243517bc09e9b731a0cmdgit.exe

    3. 配置完路径后,点击旁边的 Test 按钮,如果提示 Git executed successfully,则说明配置成功。
  • 相关阅读:
    MySQL系列(二)
    MySQL系列(一)
    RabbitMQ的安装部署
    RabbitMQ原理介绍
    消息中间件metaq
    消息中间件之zookper安装部署
    ZooKeeper基本原理
    消息中间件剖析
    了解Node.js
    windows下使用Git
  • 原文地址:https://www.cnblogs.com/lxwphp/p/7730786.html
Copyright © 2020-2023  润新知