而在Windows克隆Git仓库中显示错误:无法创建临时文件:没有这样的文件或目录

问题描述:

在窗口,同时克隆Git仓库中显示错误无法创建临时文件:没有这样的文件或目录,致命的:无法写入对象, 致命:解压缩对象未能 我尝试了不同的不同的软件sourcetree,smartgit和git-bash的也不过大家展示同样的错误而在Windows克隆Git仓库中显示错误:无法创建临时文件:没有这样的文件或目录

git -c filter.lfs.smudge= -c filter.lfs.required=false 
    -c diff.mnemonicprefix=false -c core.quotepath=false 
    -c credential.helper=manager-st 
    clone --branch master --recursive 
    https://[email protected]/arun.mondal/PostgresProcess.git 
    "E:\Collectcent Projects\PostgresProcess" 
Cloning into 'E:\Collectcent Projects\PostgresProcess'... 
error: unable to create temporary file: No such file or directory 
fatal: failed to write object 
fatal: unpack-objects failed 
Completed with errors, see above. 

我尝试了很多,但无法找到任何解决方案。

+1

你是否正确配置了'TEMP'环境变量? – mstrap

+0

存储库是否包含在其文件名的开头或结尾处有空格的文件和/或文件夹? –

+0

@mstrap我将TEMP环境变量设置为Appdata/local –

将文件添加到存储库时,我遇到了类似的问题。刚刚找到了适合我的解决方案。我将fscache配置更改为False。

git config --global core.fscache false 

让我知道它是否工作!

+0

我已经做了这个问题之前提出的问题,但没有在我的情况下工作 –