在 TortoiseGIT 中获取克隆时 Msys Git 安装路径错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1384787/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 03:49:25  来源:igfitidea点击:

Msys Git Install Path Error on Get Clone in TortoiseGIT

gitopen-sourcetortoisegit

提问by Eric Schoonover

I installed Msys Gitand TortoiseGITx64. Whenever I try to use the Get Clone command I am getting the error: "Msys Git Install Path Error".

我安装了Msys GitTortoiseGITx64。每当我尝试使用 Get Clone 命令时,都会收到错误消息:“Msys Git 安装路径错误”。

The wierd thing is that I when I set it all up, it worked once and then stopped. Now I have uninstalled and reinstalled both programs multiple times and I can not get it to work again.

奇怪的是,当我把它全部设置好时,它工作了一次然后就停止了。现在我已经多次卸载并重新安装这两个程序,但我无法再次使用它。

Msys Git Install Path Error http://friendfeed-media.com/82c54fedb7db8420f23782832e59ba3b54edf6e7

Msys Git 安装路径错误 http://friendfeed-media.com/82c54fedb7db8420f23782832e59ba3b54edf6e7

If this belongs on super user or something, please feel free to migrate.

如果这属于超级用户什么的,请随意迁移。

采纳答案by brianreavis

Try setting your path to:

尝试将您的路径设置为:

"C:\Program Files (x86)\Git\bin"

回答by Gashek

回答by VonC

Update 2016: msysgithas long been obsoleted (since early 2015).
It has been superseded by Git For Windows(see its releases).

2016 年更新:msysgit早已过时(自 2015 年初以来)。
它已被Git For Windows取代(请参阅其版本)。

It comes with a much more recent bash, based on the 64bits msys2 project, an independent rewrite of MSYS, based on modern Cygwin (POSIX compatibility layer) and MinGW-w64: see more at "How are msys, msys2, and msysgit related to each other?"

它带有一个更新的 bash,基于64 位 msys2 项目,MSYS 的独立重写,基于现代 Cygwin(POSIX 兼容层)和 MinGW-w64:请参阅“msys、msys2 和 msysgit 与彼此?”

TortoiseGit documentationdoes mention, for the Git.exe Pathsetting:

TortoiseGit 文档确实提到了Git.exe Path设置:

As a general note: There is no official support for Cygwin or Msys2 git in TortoiseGit. The TortoiseGit developers only use Git for Windows.

作为一般说明: TortoiseGit 中没有对 Cygwin 或 Msys2 git 的官方支持。TortoiseGit 开发人员只在 Windows 上使用 Git。

So simply install Git for Windows and you won't have any "Msys Git Install Path Error".

因此,只需为 Windows 安装 Git,您就不会遇到任何“Msys Git 安装路径错误”。