Does TortoiseGit work with PortableGit-x.x.x.x-previewyyyyyy? What are compatible git versions for TortoiseGit?

后端 未结 2 1632
情深已故
情深已故 2020-12-03 16:18

Does Tortoisegit work with PortableGit-x.x.x.x-previewyyyyyy? If yes, how to arrange these?

2条回答
  •  离开以前
    2020-12-03 16:45

    TortoiseGit (as of 2.11) requires a command-line git.exe.

    It works with a variety of different "git.exe providers". Known to work are:

    • 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/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 TortoiseGit 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.

提交回复
热议问题