今天用git pull失败 出现问题:
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487 AllocationBase 0x0, BaseAddress 0x68550000, RegionSize 0x1E0000, State 0x10000 C:\Program Files (x86)\Git\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
网上查了很多资料 也弄了半天,我的解决如下
1.cmd到C:\Program Files (x86)\Git\bin这个目录下面:执行
rebase.exe -b 0x50000000 msys-1.0.dll
发现出现
ReBaseImage (msys-1.0.dll) failed with last error = 2
又执行几遍还是不行
2.我以管理员身份执行cmd 结果成功了
以管理员身份运行方法:找到 C:\Windows\System32文件夹下找到cmd.exe文件 右键选择以管理员身份 运行--》ok
3.在使用git pull 恢复正常 。