IntelliJ Git集成 - git --version空输出 [英] IntelliJ Git Integration - git --version empty output

查看:736
本文介绍了IntelliJ Git集成 - git --version空输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试为IntelliJ 2016.2使用Git集成,但每当我将它指向可执行文件时,我都会遇到以下问题:



这在技术上并不妨碍集成工作,但确实会导致更新索引等问题。



我正在运行Windows 7,并进行了全新的安装,但在以前的PC上出现过相同的问题(这些工作机器具有各种令人不安的安全级别),但我有一些同事使用相同的工具包没有这样的问题。



编辑

我应该提到它的作用罚款在命令行:





我我确定我已经读过内部工作方式的变化,这意味着当它被外部可执行文件调用时,输出会被搞砸,但我找不到再次引用。


<确保你设置了Git可执行文件的正确路径:
IntelliJ> Settings> Version Control> Git应该是C:/.../ Git / bin /git.exe



不要设置git-bash.exe或git-cmd.exe


I am currently trying to use the Git integration for IntelliJ 2016.2, but whenever I point it to the executable I get the following issue:

This doesn't technically prevent the integration from working but it does cause issues updating the index etc.

I'm running Windows 7, with a completely fresh install, but I had the same issue on the previous PC (these are work machines with various irritating levels of security) but I have colleagues with the same kit that have no such issues.

EDIT

I should have mentioned that it works fine on the command line:

I'm sure I've read something about a change in the way this works internally that means when it's called by an outside executable the output gets screwed up, but I can't find the reference again.

解决方案

Make sure you set the right path to Git executable: IntelliJ > Settings > Version Control > Git should be C:/.../Git/bin/git.exe

Do not set git-bash.exe or git-cmd.exe

这篇关于IntelliJ Git集成 - git --version空输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆