git fetch-bash.exe:警告:找不到/tmp,请创建 [英] git fetch - bash.exe: warning: could not find /tmp, please create

查看:1192
本文介绍了git fetch-bash.exe:警告:找不到/tmp,请创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行git fetch并收到此错误:

I'm running git fetch and am getting this error:

> git fetch
bash.exe: warning: could not find /tmp, please create!

请注意,我已经

  • got a C:/tmp
  • set ENV vars set for TEMP / TMP to C:/tmp
  • read bash.exe: warning: could not find /tmp, please create

关于为什么突然停止工作的任何建议.昨天在工作!

Any suggestions why this has suddenly stopped working. It was working yesterday!

注意:git bashPowershell都出现相同的错误.

Note: I get the same error with both git bash and Powershell.

====更新

为了完整起见,这里是Powershell输出的env变量

And for completeness here are the env variables as output by Powershell

> dir env:TEMP

Name                           Value
----                           -----
TEMP                           C:\tmp\


> dir env:TMP

Name                           Value
----                           -----
TMP                            C:\tmp\

推荐答案

当路径中包含一些非ASCII字符时,就会看到此错误(请参见

This was seen when the path including some non-ascii character (see git-for-windows/git/issues/331

确保问题仍然存在,并且 Windows的最新git (解压缩

Make sure the issue persists with the latest git for windows (unzip PortableGit-2.6.3-64-bit.7z.exe anywhere you want, and add its C:\path\to\PortableGit-2.6.3-64-bit\usr\bin folder to %PATH%)

在通过常规CMD会话(不是powershell或bahsh)完成提取后,检查问题是否仍然存在.

Check if the issue persists when the fetch is done form a regular CMD session (not powershell or bahsh).

这篇关于git fetch-bash.exe:警告:找不到/tmp,请创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆