git在rebase期间崩溃 [英] git crash during rebase
问题描述
git rebase master
(讨厌的内存异常)
.....
$ p $所以一旦我得到了这个异常,我再次尝试重新绑定
git rebase master
它告诉我分支功能
已是最新。这看起来很奇怪,因为rebase以异常结束。
有没有办法避免oom异常?可能会以某种方式告诉git使用更少的内存量。这个异常是否会导致存储库损坏?如果它导致腐败,有没有办法安全地回滚rebase期间所做的更改,以表明
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
这篇关于git在rebase期间崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!