SourceTree git 报错

Posted 振长策而御宇内

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SourceTree git 报错相关的知识,希望对你有一定的参考价值。

Couldn’t reserve space for cygwin’s heap, Win32 error 0
git pull 时报错如下:

E:\\storm-sql>git pull origin Branch_master
  0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x68570000, RegionSize 0x2F0000, State 0x10000
C:\\xxxxxxx\\bin\\sh.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目录,使用如下命令:

rebase -b 0x76000000  msys-1.0.dll

或者

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

问题解决

以上是关于SourceTree git 报错的主要内容,如果未能解决你的问题,请参考以下文章

git之sourceTree使用github和码云的代码小结

sourceTree 更新svn提示can't locate SVN/Core.pm

sourceTree 更新svn提示can't locate SVN/Core.pm

git push 提交报错 403 ,处理方式

git无法识别新增的文件

git push 时报错