在Intellij终端中设置git [英] Setup git in Intellij terminal

查看:115
本文介绍了在Intellij终端中设置git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Intellij Terminal中使用git,但它不能识别该命令。在命令提示符和Windows Power shell中识别的命令(我在系统环境变量中添加了git路径)。我也知道Intellij有一个与Git的GUI集成。所以,谁能告诉我如何在Intellij终端中使用git命令。

解决方案

设置JetBrains(InteliJ,WebStorm,PHPStorm)IDE终端使用GIT bash

文件 - >设置 - >(在搜索中输入'终端')
将Shell路径更改为:
$ b C :\程序文件(x86)\Git\bin\sh.exe--login -i



如果你有另一个安装git的目录改变它分别。

I want to use git in Intellij Terminal but it does not recognize the command. In Command Prompt and Windows power shell the command in recognized (I added the git path in System Environment Variables). I am also aware that Intellij has an GUI integration with Git.

So, can anyone tell me how can I use the git command in the Intellij terminal.

解决方案

Setup JetBrains(InteliJ, WebStorm, PHPStorm) IDE terminal to use GIT bash

File-->Settings-->(Enter 'Terminal' in search) Change Shell path to:

"C:\Program Files (x86)\Git\bin\sh.exe" --login -i

If you have another directory for installed git change it respectively.

这篇关于在Intellij终端中设置git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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