在phpstorm,idea中使用其自身带的git插件很是方便,免去了安装客户端之后不断查找文件的麻烦。

1. 安装git.exe核心文件,也就是:

msysgit

http://code.google.com/p/msysgit/downloads/list

在安装时要注意,有个选项不让你集成到右键中,就算集在到右键中也没关系,可以后期直接在注册表中干掉。

 点击开始输入 regedit 并回车,在注册表中依次展开下面的分支:
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers
根据你要删除的菜单名称,猜测要删除的分支,比如我要删除 Git 的菜单,就删除 Git *** 之类的分支就好了。

2. 然后在File->settings->Version control->git 中配置git实际目录

 phpstorm 3.0.3 git bug

3. 然后在File->settings->Version control 中配置项目的版本管理工具,如果不是项目,点击右边加号,添加路径的版本管理。

phpstorm 3.0.3 git bug

4. 首先在File->settings->github中设置

但是在phpstorm 3.0.3的git插件有bug,解决办法,升级到4.0.3。bug出现的场景:

在File->settings->github中登录账号时提示:

cannot login with given credentials

phpstorm 3.0.3 git bug

升级到4.0.3,然后在试,就会提示Connection successful

phpstorm 3.0.3 git bug

5. 确定settings后,回到菜单vcs -> checkout from version control -> github

填写url,path

相关文章:

  • 2021-07-03
  • 2022-12-23
  • 2021-07-28
  • 2021-10-05
猜你喜欢
  • 2021-05-09
  • 2022-01-07
  • 2021-12-04
  • 2021-09-01
  • 2021-10-20
  • 2021-06-09
  • 2021-05-13
相关资源
相似解决方案