本文介绍了错误:无法产生C:\路径To\TortoiseGit\Bin:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从原始地址获取数据:

  git远程更新

获取错误

 错误:无法生成C: \路径To\TortoiseGit\Bin:没有这样的文件或目录
致命:无法分支
错误:无法获取原点

为什么会发生这种情况?还有一个解决方法吗?

解决方案

这个博客似乎与您拥有完全相同的问题:





msysgit上的这个问题也指向相同的错误:





找出您的GIT_SSH环境变量指向的内容,以及该路径中是否有空格。也许重新安装TortoiseGit会解决它。 (否则,我真的可以推荐)

Trying to do a fetch from origin:

git remote update

Get the error

Error: Cannot Spawn C:\Path To\TortoiseGit\Bin: No such file or directory
fatal: unable to fork
Error: Could not fetch origin

Why is this happening? Also is there a fix?

解决方案

This blog would seem to be the exact same problem that you have:

http://www.techneiq.com/2012/08/error-cannot-spawn-cprogram.html

And this issue on msysgit also points to the same error:

https://code.google.com/p/msysgit/issues/detail?id=313

Find out what your GIT_SSH environmental variable is pointing to and if that path has a space in it. Maybe reinstalling TortoiseGit would solve it. (Otherwise I can really recommend GitExtensions instead)

这篇关于错误:无法产生C:\路径To\TortoiseGit\Bin:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 04:13