How do I deal with corrupted Git object files?

后端 未结 4 1467
不知归路
不知归路 2020-12-05 01:29

I did a Git pull when I was near my quota, and as a result (so I think), got a corrupted file:

$ git pull
walk dffbfa18916a9db95ef8fafc6d7d769c29a445aa
fata         


        
4条回答
  •  醉酒成梦
    2020-12-05 01:56

    For anyone stumbling across the same issue:

    I fixed the problem by cloning the repo again at another location. I then copied my whole src dir (without .git dir obviously) from the corrupted repo into the freshly cloned repo. Thus I had all the recent changes and a clean and working repository.

提交回复
热议问题