乌龟 Git:执行 git 推送时获取无法生成错误

Tortoise Git: Getting can not spawn error while performing git push

Tortoise Git 不允许我推送我的代码。

git.exe push --progress "origin" <<branch_name>>

抛出以下错误

error: cannot spawn C:\Program Files (x86)\TortoiseGit\bin\TortoiseGitPlink.exe: No such file or directory
fatal: unable to fork

Tortoise git 也不允许克隆代码,所以我改用 git bash 并且它起作用了。

我不确定,对于 Tortoise GIT 需要更正什么,因为 PUSH 和克隆命令对 GIT Bash 很有效。无知:(

请帮忙

作为 mentioned here,检查您的:

  • GIT_SSH 环境变量(在 Windows 内):如果它周围有引号,请删除这些引号
  • Settings->Network(在 TortoiseGit 中):将您的 SSH 客户端路径更新为 TortoiseGitPlink.exe 的路径,不带引号

作为 OP Gendaful confirms :

My problem was on the same lines.

It did not have TortoiseGitPlink.exe path in double quotes, but:

  • the tortoise git was installed as TortoiseGit_2.5.2 and
  • the path had the reference as "TortoiseGit"

which was making the TortoiseGitPlink.exe unreachable.
Corrected the path and it started working.