MSysGit 与 Windows 版 Git

发布于 2024-09-17 22:33:42 字数 137 浏览 3 评论 0原文

我无法确定 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

近箐 2024-09-24 22:33:42

它们不是同一个东西吗?

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

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


编辑:感谢贾罗德指出这一点。我已将上述内容留给后代。引用维基百科:

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

很容易看出区别:
Git 安装程序的前缀为
Git-,msysGit 安装程序有
前缀 msysGit-。另一个故事是
msysGit 安装程序进来了
两种风格:完全安装和
网络安装。此外,msysGit 不
安装到 C:\Program Files 通过
默认。但是msysGit自带了gcc,
GNU C 编译器。

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

  • msysGitmsys< /code>+mingw 环境 + 在 Windows 上自行编译 Git 所需的一切。
  • Git for Windows 正是这样:Git,为 Windows 编译。

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:

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.

So, the difference between the two projects:

  • msysGit is the msys+mingw environment + everything needed to compile Git yourself, on Windows.
  • Git for Windows is exactly that: Git, compiled for Windows.
七度光 2024-09-24 22:33:42

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

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

来自更新的 wiki

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

(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:

... 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).

我不会写诗 2024-09-24 22:33:42

以下是“官方自述文件”摘录

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.

紧拥背影 2024-09-24 22:33:42

Git for WindowsmsysGit.如果您想使用 Git 版本 2.x,则需要从 https://github 下载。 com/git-for-windows/git/releaseshttps://github.com/msysgit/git/releases 用于 Git 版本 1.x 。

一些技术细节来自 https://github.com/git-for-windows/git /wiki/常见问题解答

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

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

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.

晚风撩人 2024-09-24 22:33:42

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

自 2015 年 11 月起,基于

msysGit 的 Windows 1.x 版 Git 现已被 Windows 版 Git 2 取代。 x。

Git for Windowsgit-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

风追烟花雨 2024-09-24 22:33:42

下载页面上的标题刚刚更新,以便完全识别“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.

毁我热情 2024-09-24 22:33:42

据我了解,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

我的痛♀有谁懂 2024-09-24 22:33:42

这是来自他们网站的更清晰的一般比较 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.

This is a more clear general comparison right from their site 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.
我们的影子 2024-09-24 22:33:42

Git for Windows 可能就是您想要的。它包括以下主要功能:

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

Git GUI Windows 用户通常期望图形用户
界面,Git for Windows 还提供了 Git GUI,这是一个功能强大的工具
Git BASH 的替代方案,提供了图形版本
每个 Git 命令行功能,以及全面的视觉差异
工具。

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

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

msysGit 是一个构建环境,其中包括想要通过为 Windows 版 Git 编写代码进行贡献的开发人员所需的所有工具。


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:

Git BASH Git 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 GUI As 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 Integration Simply 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.

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

msysGit is a build environment that includes all the tools necessary for developers who want to contribute by writing code for 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 git itself. 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文