TortoiseGit 是否与 PortableGit-xxxx-previewyyyyyy 一起使用?TortoiseGit 的兼容 git 版本是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8047483/
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
Does TortoiseGit work with PortableGit-x.x.x.x-previewyyyyyy? What are compatible git versions for TortoiseGit?
提问by numa
Does Tortoisegit work with PortableGit-x.x.x.x-previewyyyyyy? If yes, how to arrange these?
Tortoisegit 是否与 PortableGit-xxxx-previewyyyyyy 一起使用?如果是,如何安排这些?
采纳答案by VonC
Original answer (Nov. 2011)
原始答案(2011 年 11 月)
It depends on your Os (Win32 or 64), and on the combination of TortoiseGit and msysgit.
The latest versions of both should usually work together, but you can see some bugs still pending:
这取决于您的操作系统(Win32 或 64),以及 TortoiseGit 和 msysgit 的组合。
两者的最新版本通常应该一起工作,但您可以看到一些尚未解决的错误:
Whenever you have a similar issue, report it on the bug list, and look for an intermediate build.
The very latest ones, for instance, supposed to fix the current crashes, are:
每当您遇到类似问题时,请在错误列表中报告它,并寻找中间版本。
例如,应该修复当前崩溃的最新版本是:
Update Nov. 2015: TortoiseGit works with git-for-windows(msys2) which replaces msysgit.
2015 年 11 月更新:TortoiseGit 与git-for-windows(msys2) 一起使用,它取代了 msysgit。
Both git-for-windows and GitHub Desktopnow propose Git 2.5(+)
(GitHub Desktop includes Portable Git 2.5 since this morning)
git-for-windows 和GitHub Desktop现在都提出了 Git 2.5(+)
(从今天早上开始,GitHub Desktop 就包含了 Portable Git 2.5)
回答by MrTux
TortoiseGit(as of 2.10) requires a command-line git.exe
.
TortoiseGit(从 2.10 开始)需要命令行git.exe
.
It works with a variety of different "git.exe providers". Known to work are:
它适用于各种不同的“git.exe 提供程序”。已知的工作是:
- Git for Windows 2.11+ (https://git-for-windows.github.io, based on msys2; portable and installer are known to work; recommended; for Git for Windows >= 2.16 you need at least TortoiseGit 2.5.7; older versions of Git are not supported any more)
- GitHub for Windows (includes Git for Windows (one from the two above, current versions include Git for Windows 2.x based on msys2)
- Git of the Cygwin distribution (requires to activate a special hack, see https://stackoverflow.com/a/32427358/3906760and https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html; please note that Cygwin Git is kinda broken as it doesn't pass the Git test suite on Windows)
- Git of the Msys2 distribution (requires to activate a special hack, see https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html; do notenable this hack for the Git for Windows package!)
- 适用于 Windows 2.11+ 的 Git(https://git-for-windows.github.io,基于 msys2;众所周知,可移植和安装程序可以工作;推荐;对于适用于 Windows >= 2.16 的 Git,您至少需要 TortoiseGit 2.5.7;不再支持旧版本的 Git)
- GitHub for Windows(包括 Windows 的 Git(以上两个中的一个,当前版本包括基于 msys2 的 Git for Windows 2.x)
- Cygwin 发行版的 Git(需要激活一个特殊的 hack,参见https://stackoverflow.com/a/32427358/3906760和https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html;请注意Cygwin Git 有点坏,因为它没有通过 Windows 上的 Git 测试套件)
- 在Msys2分布的Git(需要激活一个特殊的黑客,看https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html;也没有!启用该黑客的混帐for Windows软件包)
You can mix x86 and x64 versions of Git.exe and TortoiseGit. However, x64 TorotiseGit will only run on x64 Windows, same for the 32-bit/x86 version of TortoiseGit which will only run on x86 Windows.
您可以混合使用 x86 和 x64 版本的 Git.exe 和 TortoiseGit。但是,x64 TorotiseGit 只能在 x64 Windows 上运行,与 32 位/x86 版本的 TortoiseGit 相同,它只能在 x86 Windows 上运行。
TortoiseGit tries to find a Git for Windows installation or tries to find a git.exe
on the PATH
environment variable. If git.exe
is not on your PATH
, you can also set the path to git.exe manually in TortoiseGit settings dialog on the general page.
TortoiseGit 尝试为 Windows 安装查找 Git 或尝试git.exe
在PATH
环境变量中查找。如果git.exe
不在您的PATH
git.exe上,您还可以在常规页面的TortoiseGit设置对话框中手动设置git.exe 的路径。