MSysGit 与 Windows 版 Git
我无法确定 MSysGit 和 Git for Windows 之间的差异。它们有何不同?为什么我会选择其中之一而不是另一个?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
它们不是同一个东西吗?
上: http://msysgit.github.com/ 标题是 Git for Windows,应用程序是 msysgit。
即使它们不是,我预计唯一的区别将在于编译方法(即使用的编译器和任何选项集)和任何无关的包装(例如在 msysgit 中具有 bash 模拟 shell)。实际产品(Git 本身)应该保持大致相似。
编辑:感谢贾罗德指出这一点。我已将上述内容留给后代。引用维基百科:
所以,两个项目之间的区别:
msys< /code>+
mingw
环境 + 在 Windows 上自行编译 Git 所需的一切。Are they not the same thing?
On: http://msysgit.github.com/ The title is Git for Windows, the application is 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.
Edit: Thanks to Jarrod for pointing this out. I've left the above in for posterity. To quote the wiki:
So, the difference between the two projects:
msys
+mingw
environment + everything needed to compile Git yourself, on Windows.(现在)它们是相同的(截至 2015 年 5 月,但可能更早一些):
“msysgit”和“Git for Windows”已合并为“Git for Windows”。 msysgit.github.io 现在托管“Git for Windows”和主 git 下载站点 git-scm.com 列出了 msysgit.github.io 作为 Windows 的维护版本。
来自更新的 wiki:
(Now) they are the same (as of May 2015 but likely a bit earlier):
"msysgit" and "Git for Windows" have merged under the name "Git for Windows." msysgit.github.io now hosts "Git for Windows" and the main git download site git-scm.com lists msysgit.github.io as the maintained build for windows.
From the updated wiki:
以下是“官方自述文件”摘录
Windows 版 Git (MSysGit) 的“便携式”版本不需要安装。它可以从您放置的任何目录运行,甚至是 USB 拇指驱动器。它不会将永久条目写入 Windows 注册表。它不需要管理员权限来“安装”。此版本不为您提供方便的右键单击上下文菜单条目“Git GUI Here”和“Git Bash Here”,因为这些需要将条目添加到 Windows 注册表中。
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.
Git for Windows 比 msysGit.如果您想使用 Git 版本 2.x,则需要从 https://github 下载。 com/git-for-windows/git/releases。 https://github.com/msysgit/git/releases 用于 Git 版本 1.x 。
一些技术细节来自 https://github.com/git-for-windows/git /wiki/常见问题解答
Git for Windows is 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/releases is used for Git version 1.x.
Some technical details from https://github.com/git-for-windows/git/wiki/FAQ
由于这篇文章中的许多答案都是旧的。
自 2015 年 11 月起,基于
msysGit 的 Windows 1.x 版 Git 现已被 Windows 版 Git 2 取代。 x。
Git for Windows 和 git-scm 都指向其二进制文件的相同下载位置
下载位置:
https://github.com/git-for -windows/git/releases/download/v2.7.1.windows.2/Git-2.7.1.2-64-bit.exe
As many answers in this post are old.
As on Nov 2015,
msysGit-based Git for Windows 1.x is now superseded by Git for Windows 2.x.
Git for Windows and git-scm both points to same download location for their binary
Download Location:
https://github.com/git-for-windows/git/releases/download/v2.7.1.windows.2/Git-2.7.1.2-64-bit.exe
下载页面上的标题刚刚更新,以便完全识别“Git for Windows”版本。现在有“安装”版本(带有右键菜单选项)和直接从记忆棒等运行的便携式版本。
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.
据我了解,Windows 上的 Git 是由以下四个要点组成的项目。
直接取自https://github.com/msysgit/msysgit/wiki:
Git在 Windows 上
为了让项目名称的乳白色“汤”更清晰,我们这样说:
msysGit - 是这个项目的名称,Git 的构建环境
for Windows,发布官方二进制文件
MinGW - 是本机 Microsoft Windows 应用程序的简约开发环境。
MSYS - 是一个 Bourne Shell 命令行解释器系统,由 MinGW(和其他人)使用,过去从 Cygwin 分叉
Cygwin - 类似Linux的环境,过去用于为Windows构建Git,现在与msysGit无关
From what I understand Git on Windows is the project consisting of the four bulletpoints below.
Taken directly from https://github.com/msysgit/msysgit/wiki:
Git on Windows
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 past from Cygwin
Cygwin - a Linux like environment, which was used in the past to build Git for Windows, nowadays has no relation to msysGit
这是来自他们网站的更清晰的一般比较 https://github.com/msysgit/msysgit
This is a more clear general comparison right from their site https://github.com/msysgit/msysgit
Git for Windows 可能就是您想要的。它包括以下主要功能:
以下内容可从同一页面单独下载...
Git BASH 为偶尔需要使用 Windows 机器的 Linux 专家提供了一个熟悉的环境——即使他们不需要
git
本身。它以 BASH 提示符开头,并添加了一系列核心实用程序,例如 ssh、find、grep、vi >、awk
,当然还有git
。Git for Windows is probably what you want. It includes the following primary features:
The following is available as a separate download from the same page...
Git BASH delivers a familiar environment for Linux experts who occasionally need to use a Windows machine -- even if they don't need
git
itself. It starts with the BASH prompt and adds a collection of core utility programs such asssh
,find
,grep
,vi
,awk
, and of coursegit
.