git gc内存错误的解决方案
2023-09-11 14:14:22 时间
Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
Counting objects: 9231, done.
Delta compression using up to 4 threads.
fatal: Out of memory, malloc failed (tried to allocate 305892693 bytes)
error: failed to run repack
gc --auto: command returned error: 255
修改下.git文件夹下的config
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[svn-remote "svn"]
url = https://server2008/svn/ZBMSH/Software
fetch = :refs/remotes/git-svn
I found a solution Here that worked for me.
In .git/config file (client and/or server) I added the following:
[core]
packedGitLimit = 128m
packedGitWindowSize = 128m
[pack]
deltaCacheSize = 128m
packSizeLimit = 128m
windowMemory = 128m
相关文章
- Win64 驱动内核编程-3.内核里使用内存
- Asp.net core应用在 Kubernetes上内存使用率过高问题分析
- linux查看cpu核数和内存指令
- UWA 六月直播季 | 6.8 移动游戏加载性能和内存管理全解析
- PSS内存优化方法
- Google Earth Engine(GEE)——缩放错误(计算超时、聚合过多、内存溢出)
- 编程获取Linux的内存占用和CPU使用率
- Redis内存数据满了导致宕机
- C# Marshal的使用,非托管内存中分配内存注意的问题
- Xamarin Android提示内存溢出错误
- 《Oracle数据库管理与维护实战》——2.2 Oracle内存结构
- 《深入解析Android 虚拟机》——2.6 Java内存模型
- 启动tomcat出现内存溢出错误 java.lang.OutOfMemoryError: PermGen space
- JAVA内存模型之synchronized的实现原理
- STM32 如何定位导致发生 hard fault 的代码段(内存访问错误 段错误 栈溢出)
- Hive on Spark生产调优之内存管理
- 为什么寄存器比内存快?
- Windows下MySQL service manager数据库/mysqld.exe占用内存解决方法/Workbench 10061错误/Navicat 10038错误
- pchar,pwidechar,pansichar作为返回参数时内存访问错误