Malloc在Git克隆中失败

时间:2018-12-10 04:29:16

标签: git version-control gitlab git-bash dvcs

在Windows 7 64位上使用Git版本2.19.1.windows.1。

我试图在 D:/ Users / Della / Documents / Python_Scripts /

中运行
git clone https://gitlab.com/forkingpin/dui-dashboard.git

在git bash上。到目前为止,该存储库仅包含59个字节的自述文件。我收到的错误消息为

fatal: Out of memory, malloc failed (tried to allocate 1744830464 bytes)
fatal: not a git repository: 'D:/Users/Della/Documents/Python_Scripts/

出路是什么?

注意点。

  • 同一命令在我的Linux桌面上像超级按钮一样工作
  • 在另一个仓库中推送已提交的更改时,我遇到了类似的问题。我通过在.git / config后面加上

    纠正了这一问题
    [http]                                                         
          postbuffer = 5m
    

但这是针对现有存储库的。克隆配置文件之前,我无法使用它。

1 个答案:

答案 0 :(得分:0)

尝试在设置了a simplified PATH first的常规CMD(而不是git bash)中使用同一命令:

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%

cd D:\Users\Della\Documents\Python_Scripts
git clone https://gitlab.com/forkingpin/dui-dashboard.git
cd dui-dashboard
dir