Git使用出错:Couldn‘t reserve space for cygwin‘s heap, Win32

今天使用Git在命令行下更新代码遇到了问题

E:storm-sql>git pull origin joeywen 0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487 AllocationBase 0x0, BaseAddress 0x68570000, RegionSize 0x2F0000, State 0x10000 C:Program Files (x86)Gitinsh.exe: *** Couldn‘t reserve space for cygwin‘s heap, Win32 error 0

解决办法

1,确保git未使用的情况下,找到Git的安装目录,在命令行下切到bin目录,使用如下命令

rebase -b 0x50000000 msys-1.0.dll

如果以上命令执行完成后还不可用则执行以下命令

rebase -b 0x76000000 msys-1.0.dll

以上所有命令,正常情况下命令行是没有任何返回内容的,除非是执行失败。 

原文地址:https://www.cnblogs.com/fwmlmx/p/11236352.html