Git Error: unable to find

前端 未结 2 372
不思量自难忘°
不思量自难忘° 2021-01-12 07:13

I get the following error when I do a git pull origin master.

error: Unable to find a47058d09b4ca436d65609758a9dba52235a75bd under http://mywe         


        
相关标签:
2条回答
  • 2021-01-12 07:17

    copy objects from your directory (.git/objects) and other people that work on a clone of this repo. One object got zapped so this should fix it.

    Here is more about moving objects around: http://www-cs-students.stanford.edu/~blynn/gitmagic/ch08.html#_the_object_database

    0 讨论(0)
  • 2021-01-12 07:30

    Like Adam said, recover the object frmo another repository/clone.

    Don't forget to take into account packs. So, a more generalized procedure is this:

    On a 'complete' git database

    git cat-file -p a47058d09b4ca436d65609758a9dba52235a75bd > tempfile
    

    and on the receiving end

    git hash-object -w tempfile
    
    0 讨论(0)
提交回复
热议问题