TortoiseGit 找不到 git.exe
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37911940/
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
TortoiseGit can't find git.exe
提问by neuronalbit
I've performed a clean install for TortoiseGit
and the latest Git for Windows
on my Windows 10
OS, but there seems to be a problem with Tortoise claiming that it can't find Git's executable.
我已经在我的操作系统上执行了全新安装TortoiseGit
和最新安装,但 Tortoise 似乎存在问题,声称它找不到 Git 的可执行文件。Git for Windows
Windows 10
The path to the Git executable set within Tortoise is correct and in addition I've already added the corresponding entry to the PATH environment variable.
Tortoise 中设置的 Git 可执行文件的路径是正确的,此外我已经将相应的条目添加到 PATH 环境变量中。
Every time I try to create a repo or if I go under settings, the following message pops up:
每次我尝试创建 repo 或者如果我进入设置,都会弹出以下消息:
git.exe not correctly set up (/usr/bin/bash: /bin/git.exe: No such file or directory)
Check TortoiseGit settings and consult help for "Git.exe Path".
git.exe 未正确设置(/usr/bin/bash: /bin/git.exe: No such file or directory)
检查 TortoiseGit 设置并咨询“Git.exe 路径”的帮助。
Summary:
概括:
- Windows 10 (x64)
- TortoiseGit (x64 / v2.1.0.0)
- Git (x64 / v2.9.0)
- 视窗 10 (x64)
- TortoiseGit (x64 / v2.1.0.0)
- Git (x64 / v2.9.0)
Installation-Paths:
安装路径:
- Tortoise: "A:\Programs\TortoiseGit"
- Git: "A:\Programs\Git\bin"
- 乌龟:“A:\Programs\TortoiseGit”
- Git: "A:\Programs\Git\bin"
Added entries for PATH-Variable:
为 PATH-Variable 添加了条目:
- "A:\Programs\Git\bin"
- "A:\Programs\Git\mingw64\bin"
- "A:\Programs\Git\bin"
- "A:\Programs\Git\mingw64\bin"
采纳答案by MrTux
When using Git for Windows don't enable Cygwin or Msys hacks!
在 Windows 上使用 Git 时不要启用 Cygwin 或 Msys hacks!
These are only for the git.exe version shipped with the cygwin or msys2 (not Git for Windows!) package.
这些仅适用于 cygwin 或 msys2(不是 Git for Windows!)包附带的 git.exe 版本。