Git Bash 和 GitHub for Windows shell 有什么区别?

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

What is the difference between Git Bash and the GitHub for Windows shell?

gitbashgithub

提问by Ram Patra

I'm referring to the shell that comes with GitHub for Windows, and Git Bash (which has a stand alone installer).

我指的是 GitHub for Windows 和 Git Bash(它有一个独立的安装程序)附带的 shell。

回答by

Well, for one thing, the default shell that comes with GitHub for Windows is PoshGit, which is a Windows Power Shellenvironment for Git. On the other hand, Git Bash/msysGituses the Bash shell(Bourne Again Shell) and MinGW, which is a port of a Linux style environment and command line tools.

嗯,一方面,GitHub for Windows 附带的默认 shell 是PoshGit,它是Git的Windows Power Shell环境。另一方面,Git Bash/msysGit使用Bash shell(Bourne Again Shell)和MinGW,这是 Linux 风格环境和命令行工具的端口。

PoshGit will let you use Windows and Power Shell commands with Git at the command line, while Git Bash will let you use MinGW/Linux tools with Git at the command line.

PoshGit 可让您在命令行中通过 Git 使用 Windows 和 Power Shell 命令,而 Git Bash 可让您在命令行中通过 Git 使用 MinGW/Linux 工具。