有谁知道 windows 的 git bash 程序用于它的 shell 吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10880801/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 07:00:45  来源:igfitidea点击:

Does anyone know what the git bash program for windows uses for its shell?

gitgithubterminalcmd

提问by kostix

Sorry if this is the wrong place to be posting but I am using the git bash program for windows downloaded from github.

抱歉,如果这是发布错误的地方,但我正在使用从 github 下载的 windows 的 git bash 程序。

It pretty much functions the same as a linux / mac terminal and I was wondering if there was any software out there that does the same thing?

它的功能几乎与 linux/mac 终端相同,我想知道是否有任何软件可以做同样的事情?

The problem is that I can only have one git bash window open, if there is a way to open more than 1 instance of git bash, that would be great too!

问题是我只能打开一个 git bash 窗口,如果有办法打开 1 个以上的 git bash 实例,那也太棒了!

Thanks a lot,

非常感谢,

Martin

马丁

回答by kostix

Github for Windowsuses a Windows port of GNU bashwhich is provided by the MSYS project which is, in turn, a part of the MinGW project. As Andrew pointed out, this piece of software is really a part of Git for Windowswhich Github for Windows includes and uses internally.

Windows 版 Github使用GNU bash的 Windows 端口,该端口由 MSYS 项目提供,而 MSYS 项目又是MinGW 项目的一部分。正如 Andrew 指出的那样,这个软件实际上是Git for Windows的一部分,Github for Windows 包含并在内部使用。

So you can get bashfor Windows outside of Github for Windows by installing MSYS.

因此,您可以bash通过安装 MSYS来获得Github for Windows 之外的 Windows。

Note though that Git for Windows is based on a modifiedmsys.dllwhich received substantial amount of changes not included upstream. I'm not sure if this constitutes a user-noticeable change but "stock" bashmight therefore differ in behaviour from that you're using inside Github for Windows.

请注意,Windows 版 Git 是基于经过修改的msys.dll,它收到了大量未包含在上游的更改。我不确定这是否构成用户可察觉的更改,但“库存”bash因此可能与您在 Github for Windows 中使用的行为不同。

Also note that this port of bashhasn't been taught to properly deal with non-ASCII characters. Hence even though Git for Windows is full Unicode since 1.7.10, bashdoesn't know about this and I'm not sure it ever will.

还要注意,这个端口bash还没有被教导正确处理非 ASCII 字符。因此,即使 Windows 版 Git 从 1.7.10 开始就是完整的 Unicode,bash但我不知道这一点,我也不确定它会不会。

回答by Andrew

It uses Git for Windows, a packing containing MSys/MinGW and git. You can get multiple tabs using a wrapper like console.

它使用Git for Windows,一个包含 MSys/MinGW 和 git 的包。您可以使用诸如console 之类的包装器获取多个选项卡。

回答by dot slash hack

Both on Windows 7 and 8 you can shift+left-click the Git icon, in the launchbar or the magical search box, to open another instance.

在 Windows 7 和 8 上,您都可以按住 shift+左键单击启动栏或神奇搜索框中的 Git 图标,以打开另一个实例。

Alternatively, you can just double-click the shortcut or sh.exe in Git/bin/.

或者,您可以直接双击 Git/bin/ 中的快捷方式或 sh.exe。

Note:Includes improvement from Fergie and botimer.

注意:包括 Fergie 和 botimer 的改进。

回答by milkovsky

Here is an article about "Replacing default git bash console with Console2"that'll help you.

这是一篇关于“用 Console2 替换默认的 git bash 控制台”的文章,可以帮助您。