GIT Rebase Fatal on Multiple 0.5GB Binary Files

前端 未结 3 1594
刺人心
刺人心 2021-02-19 22:45

[This question is essentially reopening git crash during rebase which never had an answer]

I\'m attempting to a rebase from my \'secc\' branch as:

$ git          


        
3条回答
  •  鱼传尺愫
    2021-02-19 23:02

    You won't know if your machine is big enough until failing on the 'git rebase' but by that point your directory is in a munged state. During the rebase another branch was checked out (main) so that the 'secc' changes could be applied to it. Recover, and proceed with:

    git checkout secc
    

    Having failed on the rebase, as you've noted you've got two options:

    1. If rebase is not required, go with 'git merge main'
    2. Get a bigger machine and retry 'git rebase main'

    You don't have a practical option to ignore the 0.5GB files, do the rebase, and then get those giga files back.

提交回复
热议问题