【问题标题】:PhpStorm and Github for Windows适用于 Windows 的 PhpStorm 和 Github
【发布时间】:2012-09-12 11:39:25
【问题描述】:

PhpStorm 与 Git 的集成要求我提供 git.exe 路径,但是“github for windows”似乎没有创建任何 git.exe 文件。那么它是一种配置 phpstorm 的方法,因此它使用“github for windows”来使用 github 吗?

【问题讨论】:

  • @CrazyCoder 是的,先生,这也解决了这个问题。谢谢!
  • 你也可以改变你的 PhpStorm 终端以使用 Git Bash,方法是进入 Settings > Terminal > Shell path 并将其设置为 C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i"
  • 我的只能使用这个:"C:\Program Files (x86)\Git\bin\sh.exe" --login -i (WebStorm 10)

标签: git phpstorm github-for-windows


【解决方案1】:

我使用Git Bash 设置它,一旦安装在 PhpStorm 中,转到:

设置 > 版本控制 > Git

并指向

C:\Program Files (x86)\Git\cmd\git.exe

或者你安装 Git Bash 的地方

【讨论】:

    【解决方案2】:

    Github for Windows 使用位于 AppData\Local\Github 文件夹中的 PortableGit 版本。

    与上面的 RubyMine 问题非常相似: Integrating RubyMine with GitHub for Windows

    【讨论】:

      【解决方案3】:

      要在 Windows 7 上使用 PhpStorm 配置 Git,请使用以下路径:

      C:\Program Files\Git\bin\git.exe
      

      (与 Git 版本为 2.7.1.0 一起使用)

      【讨论】:

        猜你喜欢
        • 2012-11-19
        • 2013-07-30
        • 2020-02-19
        • 1970-01-01
        • 2017-03-28
        • 2019-01-23
        • 1970-01-01
        • 2020-06-04
        • 2013-01-31
        相关资源
        最近更新 更多