git fetch-bash.exe:警告:找不到/tmp,请创建 [英] git fetch - bash.exe: warning: could not find /tmp, please create
问题描述
我正在运行git fetch
并收到此错误:
I'm running git fetch
and am getting this error:
> git fetch
bash.exe: warning: could not find /tmp, please create!
请注意,我已经
- 获得了
C:/tmp
- 将TEMP/TMP的ENV变量设置为
C:/tmp
- 阅读 bash.exe:警告:找不到/tmp,请创建
- 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 bash
和Powershell
都出现相同的错误.
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\
推荐答案
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屋!