zoukankan      html  css  js  c++  java
  • 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
    

    原因分析:

    Cygwin uses persistent shared memory sections, which can on occasion become corrupted. The symptom of this is that some Cygwin programs begin to fail, but other applications are unaffected. Since these shared memory sections are persistent, often a reboot is needed to clear them out before the problem can be resolved.
    

    解决办法:
    找到Git的安装目录,在命令行下切到bin目录,使用如下命令

    1

    rebase.exe -b 0x50000000 msys-1.0.dll
    

    然后git重新恢复了正常,在使用该命令确保git此时没有在使用

  • 相关阅读:
    动态加载方法(定时任务)
    安装 asp.net core 出错
    .NET:权限管理
    关于随机数
    博客园首弹
    C# MVC从其他系统获取文件流,显示文件
    Python中操作MySQL步骤
    MySql之_增删改查
    数据库之_SQL注入
    为什么上传到youtube上的视频很模糊
  • 原文地址:https://www.cnblogs.com/leetao94/p/5593978.html
Copyright © 2011-2022 走看看