git - TortoiseGit 找不到 git.exe

标签 git tortoisegit

我已在我的 Windows 10 操作系统上对 TortoiseGit 和最新的 Git for Windows 进行了全新安装,但似乎有Tortoise 出现问题,声称找不到 Git 的可执行文件。

Tortoise 中的 Git 可执行文件集的路径是正确的,此外我已经将相应的条目添加到 PATH 环境变量中。

每次我尝试创建存储库或进入设置时,都会 pop 以下消息:

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".



摘要:

  • Windows 10 (x64)
  • TortoiseGit (x64/v2.1.0.0)
  • Git (x64/v2.9.0)

安装路径:

  • 乌龟:“A:\Programs\TortoiseGit”
  • Git:“A:\Programs\Git\bin”

添加了 PATH-Variable 条目:

  • “A:\Programs\Git\bin”
  • “A:\Programs\Git\mingw64\bin”

最佳答案

在 Windows 上使用 Git 时,请勿启用 Cygwin 或 Msys hack!

这些仅适用于 cygwin 或 msys2(不适用于 Windows 的 Git!)软件包附带的 git.exe 版本。

关于git - TortoiseGit 找不到 git.exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37911940/

相关文章:

git svn clone 失败并显示 "error: git-svn died of signal 11"

git - 如何在没有管理员权限的情况下安装 TortoiseGit?

tortoisegit - 如何防止 TortoiseGit 询问我以谁的身份登录?

git - GitHub 的 TortoiseGit 问题跟踪器集成

git - merge 提交中的其他更改

Linux 硬链接(hard link) (ln) 和 GIT

git - 是否可以将 Git SSH key 从一个系统传输到另一个系统

git - 无法通过 SSH 使用适用于 Windows 2.14 的 Git 克隆/pull/推送存储库

git - Tortoise GIT - 显示 merge 后在分支中创建的更改

branch - 如何删除已经与 TortoiseGit 合并的本地 Git 分支?