Cygwin 或 Git Bash 命令窗口?

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

Cygwin or Git Bash command window?

gitcygwingit-bash

提问by tonga

I'm new to Git. I downloaded Git and installed on my Windows. I saw Git provides a Git Bash command window. I also have Cygwin installed on my machine. Both Git Bash and Cygwin provide Git command line utilities. So my question is: Which one is the preferred way to use Git command: Running Git commands in Git Bash or Cygwin?

我是 Git 的新手。我下载了 Git 并安装在我的 Windows 上。我看到 Git 提供了一个 Git Bash 命令窗口。我的机器上也安装了 Cygwin。Git Bash 和 Cygwin 都提供 Git 命令行实用程序。所以我的问题是:哪一种是使用 Git 命令的首选方式:在 Git Bash 或 Cygwin 中运行 Git 命令?

采纳答案by VonC

git-bashis enough, unless you need more recent bash feature (since the bash from MingW used by msysgit is quite old)

git-bash足够了,除非您需要更新的 bash 功能(因为 msysgit 使用的来自 MingW 的 bash 已经很老了)

See also "Difference between msysgit and Cygwin + git?".

另请参阅“ msysgit 和 Cygwin + git 之间的区别?”。

For instance, GitHub for Windowswould use msysgit, not git in Cygwin.

例如,GitHub for Windows将使用 msysgit,而不是 Cygwin 中的 git。