git在rebase期间崩溃 [英] git crash during rebase

查看:213
本文介绍了git在rebase期间崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在存储库中我有相当大量的文件。因此,git有时会因重建更改期间的内存不足而崩溃。

c $ c> git checkout feature
git rebase master
(讨厌的内存异常)
.....



git rebase master

它告诉我分支功能已是最新。这看起来很奇怪,因为rebase以异常结束。



有没有办法避免oom异常?可能会以某种方式告诉git使用更少的内存量。这个异常是否会导致存储库损坏?如果它导致腐败,有没有办法安全地回滚rebase期间所做的更改,以表明 git rebase master 被调用?



  git repack -a -f -d $ b 解决方案

$ b

http://git.661346.n2.nabble.com/running-out-of-记忆 - 当做一个大型资料库的克隆 - td1491051.html


I have rather big amount of file in repository. Thus git sometimes crashes due to out of memory exception during rebasing changes.

E.g.

git checkout feature
git rebase master
(nasty out of memory exception)
.....

So once I got that exception, I tried again rebasing

git rebase master

And it told me that branch feature is up to date. That seems strange, as rebase finished with exception.

Are there any way to avoid oom exception? May be somehow tell git use smaller amount of memory. Could this exception be cause of repository corruption? If it causes corruption are there any way safely roll back changes made during rebase to state that was before git rebase master was called?

解决方案

Try:

git repack -a -f -d

http://git.661346.n2.nabble.com/running-out-of-memory-when-doing-a-clone-of-a-large-repository-td1491051.html

这篇关于git在rebase期间崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆