MSysGit 与适用于 Windows 的 Git

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

MSysGit vs. Git for Windows

windowsgitmsysgit

提问by Jarrod

I am having trouble determining the difference between MSysGit and Git for Windows. How are they different? Why would I choose one over the other?

我无法确定MSysGit 和 Git for Windows 之间区别。它们有何不同?为什么我会选择一个而不是另一个?

采纳答案by Jarrod

Are they not the same thing?

它们不是一回事吗?

On: http://msysgit.github.com/The title is Git for Windows, the application is msysgit.

上:http: //msysgit.github.com/ 标题是Git for Windows,应用是msysgit。

Even in the event they are not, I expect the only differences will be in the method of compilation (i.e. compiler used and any options set) and any extraneous packaging (such as having a bash emulating shell as in msysgit). The actual product (Git itself) should remain broadly similar.

即使它们不是,我希望唯一的区别在于编译方法(即使用的编译器和任何选项集)和任何无关的包装(例如在 msysgit 中使用 bash 模拟 shell)。实际产品(Git 本身)应该保持大致相似。



Edit: Thanks to Jarrod for pointing this out. I've left the above in for posterity. To quote the wiki:

编辑:感谢 Jarrod 指出这一点。我已将上述内容留给后人。引用维基:

msysGit is the development environment to compile Git for Windows. It is complete, in the sense that you just need to install msysGit, and then you can build Git. Without installing any 3rd-party software. msysGit is not Git for Windows; that is an installer which installs Git -- and only Git.

It is easy to see the difference: the installers for Git have the prefix Git-, the msysGit installers have the prefix msysGit-. Another telltale is that the msysGit installers come in two flavors: fullinstall and netinstall. Further, msysGit does not install to C:\Program Files by default. But msysGit comes with gcc, the GNU C Compiler.

msysGit 是为 Windows 编译 Git 的开发环境。它是完整的,从某种意义上说,您只需要安装 msysGit,然后就可以构建 Git。无需安装任何第三方软件。msysGit 不是用于 Windows 的 Git;这是一个安装 Git 的安装程序——而且只有 Git。

很容易看出区别:Git 的安装程序有前缀 Git-,msysGit 安装程序有前缀 msysGit-。另一个说明是 msysGit 安装程序有两种形式:fullinstall 和 netinstall。此外,默认情况下,msysGit 不会安装到 C:\Program Files。但是 msysGit 带有 gcc,即 GNU C 编译器。

So, the difference between the two projects:

所以,两个项目之间的区别

  • msysGitis the msys+mingwenvironment + everything needed to compile Git yourself, on Windows.
  • Git for Windowsis exactly that: Git, compiled for Windows.
  • msysGitmsys+mingw环境 + 在 Windows 上自己编译 Git 所需的一切。
  • 适用于 Windows 的 Git就是这样:Git,为 Windows 编译。

回答by Bryan P

(Now) they are the same(as of May 2015 but likely a bit earlier):

(现在)它们是相同的(截至 2015 年 5 月,但可能更早一点):

"msysgit" and "Git for Windows" have merged under the name "Git for Windows." msysgit.github.ionow hosts "Git for Windows" and the main git download site git-scm.comlists msysgit.github.ioas the maintained build for windows.

“msysgit”和“Git for Windows”合并为“Git for Windows”。msysgit.github.io现在托管“Windows 版 Git”,主要的 git 下载站点git-scm.commsysgit.github.io列为 Windows 的维护版本。

From the updated wiki:

从更新的维基

... we decided to just phase out the name "msysGit" (as well as the GitHub org of the same name) and work on Git for Windows (with the corresponding GitHub org, and using the name "Git for Windows" for the installer aimed at "end-users" and "Git for Windows SDK" for the development environment targeting Git for Windows developers).

...我们决定逐步淘汰名称“msysGit”(以及同名的 GitHub 组织)并在 Git for Windows 上工作(使用相应的 GitHub 组织,并使用名称“Git for Windows”作为安装程序针对“最终用户”和针对 Windows 开发人员的 Git 开发环境的“Git for Windows SDK”)。

回答by Tobias Schultze

Git for Windowsis newer than msysGit. If you want to use Git version 2.x you need to download from https://github.com/git-for-windows/git/releases. https://github.com/msysgit/git/releasesis used for Git version 1.x.

Windows 版 GitmsysGit更新。如果你想使用 Git 2.x 版,你需要从https://github.com/git-for-windows/git/releases下载。https://github.com/msysgit/git/releases用于 Git 版本 1.x。

Some technical details from https://github.com/git-for-windows/git/wiki/FAQ

一些技术细节来自https://github.com/git-for-windows/git/wiki/FAQ

Git for Windows used to be developed using the development environment called "msysGit", but roughly coinciding with Git 2.1, msysGit was superseded by a new development environment: the Git for Windows SDK.

Git for Windows 过去使用名为“msysGit”的开发环境进行开发,但与 Git 2.1 大致一致,msysGit 被新的开发环境取代:Git for Windows SDK

回答by Santhosh Neyyar

Here is the excerpt 'Official README'

这是“官方自述文件”的摘录

"portable" version of Git for Windows (MSysGit) does not need tobe installed. It will run from any directory you place it in, evenonto a USB thumbdrive. It will not write permanent entries into the Windows registry. It does not need administrator privileges to "install". This version does not offer you the convenient right-click context menu entries "Git GUI Here" and "Git Bash Here", because these would require to add entries into the Windows registry.

不需要安装 Windows 版 Git (MSysGit) 的“便携式”版本。它可以从您放置它的任何目录中运行,甚至可以在 USB 拇指驱动器中运行。它不会将永久条目写入 Windows 注册表。“安装”不需要管理员权限。此版本不为您提供方便的右键单击上下文菜单条目“Git GUI Here”和“Git Bash Here”,因为这些需要将条目添加到 Windows 注册表中。

回答by Ravi Parekh

As many answers in this post are old.

由于这篇文章中的许多答案都是旧的。

As on Nov 2015,

截至 2015 年 11 月,

msysGit-based Git for Windows 1.x is now superseded by Git for Windows 2.x.

基于msysGit的 Git for Windows 1.x 现在被 Git for Windows 2.x 取代。

Git for Windowsand git-scmboth points to same download location for their binary

Windows 版 Gitgit-scm都指向其二进制文件的相同下载位置

Download Location:

下载地址:

https://github.com/git-for-windows/git/releases/download/v2.7.1.windows.2/Git-2.7.1.2-64-bit.exe

https://github.com/git-for-windows/git/releases/download/v2.7.1.windows.2/Git-2.7.1.2-64-bit.exe

回答by Philip Oakley

The titles on the download page have just been updated so that the "Git for Windows" versions are fully identified. There is now both an 'installed' version (with right click menu options), and a Portable version that runs direct from a memory stick etc.

下载页面上的标题刚刚更新,以便完全识别“Git for Windows”版本。现在有一个“已安装”版本(带有右键菜单选项)和一个直接从记忆棒等运行的便携式版本。

回答by netigger

From what I understand Git on Windowsis the project consisting of the four bulletpoints below.

据我了解,Windows上的Git是由以下四个要点组成的项目。

Taken directly from https://github.com/msysgit/msysgit/wiki:

直接取自https://github.com/msysgit/msysgit/wiki

Git on Windows

Windows 上的 Git

To make the milky 'soup' of project names more clear, we say like this:

为了让项目名称的乳白色“汤”更清晰,我们这样说:

  • msysGit- is the name of this project, a build environment for Git for Windows, which releases the official binaries

  • MinGW- is a minimalist development environment for native Microsoft Windows applications.

  • MSYS- is a Bourne Shell command line interpreter system, is used by MinGW (and others), was forked in the pastfrom Cygwin

  • Cygwin- a Linux like environment, which was used in the past to build Git for Windows, nowadays has no relation to msysGit

  • msysGit- 是这个项目的名称,Git for Windows 的构建环境,它发布官方二进制文件

  • MinGW- 是原生 Microsoft Windows 应用程序的极简开发环境。

  • MSYS- 是 Bourne Shell 命令行解释器系统,由 MinGW(和其他人)使用,过去从 Cygwin分叉

  • Cygwin- 一个类似 Linux 的环境,过去用于为 Windows 构建 Git,现在与 msysGit 没有关系

回答by PositiveGuy

This is a more clear general comparison right from their site https://github.com/msysgit/msysgit

这是来自他们网站https://github.com/msysgit/msysgit的更清晰的一般比较

Git for Windows is the software package that installs a minimal environment to run Git on Windows. It comes with a Bash (a Unix-type shell), with a Perl interpreter and with the Git executable and its dependencies.

On the other hand, msysGit is the software package installing the build environment that can build Git for Windows. The easiest way is to install it via the net installer.

回答by nobar

Git for Windowsis probably what you want. It includes the following primary features:

适用于 Windows 的 Git可能正是您想要的。它包括以下主要功能:

Git BASHGit for Windows provides a BASH emulation used to run Git from the command line. *NIX users should feel right at home, as the BASH emulation behaves just like the "git" command in LINUX and UNIX environments.

Git GUIAs Windows users commonly expect graphical user interfaces, Git for Windows also provides the Git GUI, a powerful alternative to Git BASH, offering a graphical version of just about every Git command line function, as well as comprehensive visual diff tools.

Shell IntegrationSimply right-click on a folder in Windows Explorer to access the BASH or GUI. The Git-Cheetah plugin also provides a TortoiseSVN-like interface that displays Git functions directly on the context menu.

Git BASHWindows 版 Git 提供了一个 BASH 模拟,用于从命令行运行 Git。*NIX 用户应该有宾至如归的感觉,因为 BASH 仿真的行为就像 LINUX 和 UNIX 环境中的“git”命令。

Git GUI由于 Windows 用户通常期望图形用户界面,Windows 版 Git 还提供 Git GUI,这是 Git BASH 的强大替代品,提供几乎所有 Git 命令行功能的图形版本,以及全面的可视化差异工具。

Shell 集成只需右键单击 Windows 资源管理器中的文件夹即可访问 BASH 或 GUI。Git-Cheetah 插件还提供了类似 TortoiseSVN 的界面,可以直接在上下文菜单上显示 Git 功能。

The following is available as a separate download from the same page...

以下内容可从同一页面单独下载...

msysGitis a build environment that includes all the tools necessary for developers who want to contribute by writing code for Git for Windows.

msysGit是一个构建环境,其中包含希望通过为 Git for Windows 编写代码做出贡献的开发人员所需的所有工具。



Git BASH delivers a familiar environment for Linux experts who occasionally need to use a Windows machine -- even if they don't need gititself. It starts with the BASH prompt and adds a collection of core utility programs such as ssh, find, grep, vi, awk, and of course git.

Git BASH 为偶尔需要使用 Windows 机器的 Linux 专家提供了一个熟悉的环境——即使他们不需要git它自己。它以 BASH 提示符开头,并添加了一系列核心实用程序,例如ssh, find, grep, vi, awk, , 当然还有git.