Github Repo Corruption - Sha1 Collision

后端 未结 4 1708
闹比i
闹比i 2020-12-08 14:58

Yesterday one of my team\'s checkins corrupted our github repo. On github, they were showing this error:

$ git fsck
error: sha1 mismatch 87859f196ec9266bada         


        
4条回答
  •  借酒劲吻你
    2020-12-08 15:33

    I ran into the same issue and ran:

    git prune  
    git gc  
    

    which mentioned

    error: bad ref for refs/remotes/origin/ticketName

    so I removed the reference and that fixed the issue:

    rm .git/refs/remotes/origin/ticketName
    

提交回复
热议问题