Does Tortoisegit work with PortableGit-x.x.x.x-previewyyyyyy? If yes, how to arrange these?
问题:
回答1:
Original answer (Nov. 2011)
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:
- Issue 948: TortoiseProc crashes when repo contains huge files
- Issue 875: TGitCache crash
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:
- https://tortoisegit.org/download/
Update Nov. 2015: TortoiseGit works with git-for-windows (msys2) which replaces msysgit.
Both git-for-windows and GitHub Desktop now propose Git 2.5(+)
(GitHub Desktop includes Portable Git 2.5 since this morning)
回答2:
TortoiseGit (as of 2.7) requires a command-line git.exe
.
It works with a variety of different "git.exe providers". Known to work are:
- Git for Windows 2.x (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)
- Git for Windows 1.x (https://github.com/msysgit/msysgit/releases based on msys1; also often called msysgit; portable, preview and msysgit SDK environment are known to work if version >= 1.9.5; this version includes known security issues and several known issues (such as this one), really consider Git for Windows >=2.17.1)
- 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/3906760 and 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 not enable this hack for the Git for Windows package!)
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.
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.