【问题标题】:Malloc Failed in Git CloneMalloc 在 Git 克隆中失败
【发布时间】:2019-05-10 23:45:50
【问题描述】:

在 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 桌面上运行起来非常棒
  • 在另一个存储库中推送已提交的更改(在 Windows 上)时,我遇到了类似的问题。我通过在 .git/config 后面加上

    来纠正这个问题
    [http]                                                         
          postbuffer = 5m
    

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

【问题讨论】:

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


    【解决方案1】:

    尝试相同的命令是否适用于您已设置 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
    

    【讨论】:

      猜你喜欢
      • 2011-06-11
      • 1970-01-01
      • 2014-09-03
      • 2023-04-09
      • 1970-01-01
      • 2021-01-13
      • 1970-01-01
      • 2017-08-20
      • 1970-01-01
      相关资源
      最近更新 更多