git 适用于 Windows 的 PhpStorm 和 Github
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12506972/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PhpStorm and Github for Windows
提问by jgutix
PhpStorm integration with Git asks me for git.exe
path, however "github for windows" seems like it doesn't create any git.exe file. So is it a way to config phpstorm so it use "github for windows" for working with github?
PhpStorm 与 Git 的集成要求我提供git.exe
路径,但是“github for windows”似乎没有创建任何 git.exe 文件。那么它是一种配置 phpstorm 以便它使用“github for windows”来与 github 一起工作的方法吗?
回答by keeg
I set it up using Git Bash, once installed in PhpStorm go to:
我使用Git Bash 进行设置,一旦安装在 PhpStorm 中,请转到:
settings > version control > Git
设置 > 版本控制 > Git
And point to
并指向
C:\Program Files (x86)\Git\cmd\git.exe
C:\Program Files (x86)\Git\cmd\git.exe
Or where ever you installed Git Bash
或者你安装 Git Bash 的地方
回答by Mukesh
To configure Git with PhpStorm on Windows 7 use the following path :
要在 Windows 7 上使用 PhpStorm 配置 Git,请使用以下路径:
C:\Program Files\Git\bin\git.exe
( Used with Git version is 2.7.1.0 )
(与 Git 一起使用的版本是 2.7.1.0 )
回答by James Knight
Github for Windows uses a version of PortableGit located in the AppData\Local\Github folder.
Windows 版 Github 使用位于 AppData\Local\Github 文件夹中的 PortableGit 版本。
Very similar to the RubyMine Issue above: Integrating RubyMine with GitHub for Windows
非常类似于上面的 RubyMine 问题: Integrating RubyMine with GitHub for Windows