Git Error : [remote rejected] master -> master (missing necessary objects)

前端 未结 1 1635
独厮守ぢ
独厮守ぢ 2021-01-20 19:21

I\'ve a rather worrying problem with git.

A few days ago I was committing some changes when the server git was on blue screened. (We think it was actually caused by

相关标签:
1条回答
  • 2021-01-20 19:58

    So when I saw that the problematic files that I was having problems with were the ones I was committing when the machine crashed, we tried having someone else create a small change and commit those changes to the system.

    This worked for them. I could then do a pull for their changes and then I could then commit my changes to the files, getting everything back to how it should be.

    So the answer is a simple one, have someone else commit the files into the repository, and pull them back out.

    Why this works is a bit of a mystery. Presumably there is something user specific somewhere which was left in a bad state after the crash, so pulling a newer version over resets this 'corruption'.

    Anyway, it works now so happy days! I'll leave this up as there was scant results on Google for this problem and maybe someone else has a similar issue.

    0 讨论(0)
提交回复
热议问题