将Git bash嵌入PyCharm中作为外部工具,并在PyCharm窗口中使用它(Windows XP) [英] Embed Git bash in PyCharm as external tool and work with it in PyCharm window (windows xp)

查看:364
本文介绍了将Git bash嵌入PyCharm中作为外部工具,并在PyCharm窗口中使用它(Windows XP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PyCharm中添加了cmd作为外部工具,它在PyCharm控制台中很好地工作(查看->运行). 此处 描述了如何从cmd启动Git bash.它在单独的窗口中打开,但是我希望它在同一个PyCharm窗口中,因此我可以在不按CTRL + TAB的情况下键入命令.

I added cmd as external tool in PyCharm, and it works nicely in PyCharm console (View -> Run). Here is described how to launch Git bash from cmd. It opens in separate window, but I want it to be in the same PyCharm window, so I can type commands without pressing the CTRL+TAB.

我想应该有其他方法,更直接,但是我看不到.

I suppose there should be other way, more straight-forward, but I dont see it.

推荐答案

将终端配置为使用Git安装中的bash.exesh.exe,如下所示:

Configure the Terminal to use bash.exe or sh.exe from Git installation like this:

"c:\Program Files\Git\bin\sh.exe" --login

使用Tools | Open Terminal...(或单击终端工具"窗口),然后在终端工具"窗口中运行git命令.

Use Tools | Open Terminal... (or click on the Terminal tool window) then run your git command in the Terminal tool window.

这篇关于将Git bash嵌入PyCharm中作为外部工具,并在PyCharm窗口中使用它(Windows XP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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