i am in the branch "master". when checkout to "zc" branch , i was informed
"object file is empty".

$ git branch
  demo
  develop
* master
  zc

$ git checkout zc
error: unable to find 00d2a5741d54116a156e477093c3fcf30b24c6b3
error: unable to read sha1 file of doc/build/html/_sources/props/buyhp.txt
(00d2a5741d54116a156e477093c3fcf30b24c6b3)
error: object file .git/objects/ee/4fc9118d213089e959b1625405c4b835cd4af7
is empty
error: unable to find ee4fc9118d213089e959b1625405c4b835cd4af7
error: object file .git/objects/ee/4fc9118d213089e959b1625405c4b835cd4af7
is empty
fatal: loose object ee4fc9118d213089e959b1625405c4b835cd4af7 (stored in
.git/objects/ee/4fc9118d213089e959b1625405c4b835cd4af7) is corrupt




2012/8/27 Thomas Ferris Nicolaisen <tfn...@gmail.com>

> Generally it's a bad idea to rm stuff, better off moving it to a different
> location.
>
> I'd say the best thing for you to do at this point is to re-clone your
> repository from someone else who has the latest version. Keep a copy of
> your corrupted local repository for safety though. If your work tree has
> local changes, you can manually copy these into a fresh clone and commit
> them again.
>
> If you still want to keep digging through Git internals to recover the
> lost objects (which can get very tricky if the corrupted file pointed to
> something like an old tree), have a read through the following:
>
>    -
>    
> http://stackoverflow.com/questions/4111728/how-do-i-deal-with-corrupted-git-object-files
>    -
>    
> http://stackoverflow.com/questions/801577/how-to-recover-git-objects-damaged-by-hard-disk-failure
>    -
>    
> http://git.kernel.org/?p=git/git.git;a=blob;f=Documentation/howto/recover-corrupted-blob-object.txt;h=323b513ed0e0ce8b749672f589a375073a050b97;hb=HEAD
>
>
> On Monday, August 27, 2012 9:12:27 AM UTC+2, zhang chao wrote:
>
>> i was rm .git/objects/00/**d2a5741d54116a156e477093c3fcf3**0b24c6b3
>> ,than error massage:
>> error: unable to find 00d2a5741d54116a156e477093c3fc**f30b24c6b3
>>
>>
>> 2012/8/27 树上 <cn.p...@gmail.com>
>>
>>>  rm those files?
>>>
>>>
>>> 2012/8/27 树上 <cn.p...@gmail.com>
>>>
>>>> Thmoas,
>>>>
>>>> $ git fsck --full
>>>> error: object file 
>>>> .git/objects/00/**d2a5741d54116a156e477093c3fcf3**0b24c6b3
>>>> is empty
>>>> fatal: loose object 00d2a5741d54116a156e477093c3fc**f30b24c6b3 (stored
>>>> in .git/objects/00/**d2a5741d54116a156e477093c3fcf3**0b24c6b3) is
>>>> corrupt
>>>>
>>>>
>>>>
>>>> 2012/8/27 Thomas Ferris Nicolaisen <tfn...@gmail.com>
>>>>
>>>>> Hi,
>>>>>
>>>>> Try the approach given here:
>>>>>
>>>>> http://www.kernel.org/pub/**software/scm/git/docs/user-**
>>>>> manual.html#recovering-from-**repository-corruption<http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#recovering-from-repository-corruption>
>>>>>
>>>>> If you're unsure how to proceed, do a git fsck --full and paste the
>>>>> output back here.
>>>>>
>>>>> On Monday, August 27, 2012 5:56:59 AM UTC+2, zhang chao wrote:
>>>>>>
>>>>>>
>>>>>> hi all
>>>>>>
>>>>>>   i got an error from my git repo, i wlll push my code to center, but
>>>>>> i got same error for here:
>>>>>> $ git  push origin zc:zc
>>>>>> Counting objects: 316, done.
>>>>>> error: object file .git/objects/00/**d2a5741d54116a**156e477093c3fcf3
>>>>>> **0b24c6b3 is empty
>>>>>> error: unable to find 00d2a5741d54116a156e477093c3fc****f30b24c6b3
>>>>>> error: object file .git/objects/1b/**62dba14055e50a**89fe4f01dbb0db85
>>>>>> **4fa2db16 is empty
>>>>>> error: unable to find 1b62dba14055e50a89fe4f01dbb0db****854fa2db16
>>>>>> error: object file .git/objects/35/**26a3b36fc6dde7**75daf854b901c2a3
>>>>>> **ad9e1641 is empty
>>>>>> error: unable to find 3526a3b36fc6dde775daf854b901c2****a3ad9e1641
>>>>>> error: object file .git/objects/35/**c5c9b21dccbcd6**4d9e7066337ac0b6
>>>>>> **c69c8e28 is empty
>>>>>> error: unable to find 35c5c9b21dccbcd64d9e7066337ac0****b6c69c8e28
>>>>>> error: object file .git/objects/38/**46ddd089dd3786**0c26979aae4e9de6
>>>>>> **1da2f4d5 is empty
>>>>>> error: unable to find 3846ddd089dd37860c26979aae4e9d****e61da2f4d5
>>>>>> error: object file .git/objects/4e/**72bcb390b810d1**b31a320191f67a81
>>>>>> **a828c2ba is empty
>>>>>> error: unable to find 4e72bcb390b810d1b31a320191f67a****81a828c2ba
>>>>>> error: object file .git/objects/64/**d930e08f4c4094**2ed52c0c8d7a9853
>>>>>> **cc17d3c4 is empty
>>>>>> error: unable to find 64d930e08f4c40942ed52c0c8d7a98****53cc17d3c4
>>>>>> error: object file .git/objects/67/**ce133cf5be6565**f44a12dbfd6468e0
>>>>>> **7f75a537 is empty
>>>>>> error: unable to find 67ce133cf5be6565f44a12dbfd6468****e07f75a537
>>>>>> error: object file .git/objects/68/**54ac3760c0c35d**dddbe060fbf33265
>>>>>> **934bee24 is empty
>>>>>> error: unable to find 6854ac3760c0c35ddddbe060fbf332****65934bee24
>>>>>> error: object file .git/objects/6a/**6a541057701ba0**b5646ad629176680
>>>>>> **04995d8a is empty
>>>>>> error: unable to find 6a6a541057701ba0b5646ad6291766****8004995d8a
>>>>>> error: object file .git/objects/6b/**74e1accbf204ff**a3e19ebeab231b3f
>>>>>> **a1f10857 is empty
>>>>>> error: unable to find 6b74e1accbf204ffa3e19ebeab231b****3fa1f10857
>>>>>> error: object file .git/objects/6e/**eb7622c63b5b7e**ea101dca67e98318
>>>>>> **2f78400e is empty
>>>>>> error: unable to find 6eeb7622c63b5b7eea101dca67e983****182f78400e
>>>>>> error: object file .git/objects/74/**b0a114d8793fbf**da585d4e624358c0
>>>>>> **d997d436 is empty
>>>>>> error: unable to find 74b0a114d8793fbfda585d4e624358****c0d997d436
>>>>>> error: object file .git/objects/77/**11c8943847a748**00ebd74a79cc312a
>>>>>> **8c825de9 is empty
>>>>>> error: unable to find 7711c8943847a74800ebd74a79cc31****2a8c825de9
>>>>>> error: object file .git/objects/81/**1cc6b965b3094b**f30a9fff92ac0aae
>>>>>> **a753f6fe is empty
>>>>>> error: unable to find 811cc6b965b3094bf30a9fff92ac0a****aea753f6fe
>>>>>> error: object file .git/objects/85/**7b922ffab318f5**64b379833be561f8
>>>>>> **b0bd1339 is empty
>>>>>> error: unable to find 857b922ffab318f564b379833be561****f8b0bd1339
>>>>>> error: object file .git/objects/86/**a33442048470f8**08567c46d41441f3
>>>>>> **1bdd3e36 is empty
>>>>>> error: unable to find 86a33442048470f808567c46d41441****f31bdd3e36
>>>>>> error: object file .git/objects/88/**24dd742f7047f2**0dab57556ea216d0
>>>>>> **8a06f8c4 is empty
>>>>>> error: unable to find 8824dd742f7047f20dab57556ea216****d08a06f8c4
>>>>>> error: object file .git/objects/98/**fae8437f9ac052**164bd511c97e96c1
>>>>>> **c42d0e3c is empty
>>>>>> error: unable to find 98fae8437f9ac052164bd511c97e96****c1c42d0e3c
>>>>>> error: object file .git/objects/9e/**a996fd26dde4f2**176928328a322733
>>>>>> **2cae599c is empty
>>>>>> error: unable to find 9ea996fd26dde4f2176928328a3227****332cae599c
>>>>>> error: object file .git/objects/b0/**9b1c1e803e8121**57cb1187c3e615f8
>>>>>> **aa68f991 is empty
>>>>>> error: unable to find b09b1c1e803e812157cb1187c3e615****f8aa68f991
>>>>>> error: object file .git/objects/bc/**804222b22c7966**fa6925af2777af48
>>>>>> **834d24ba is empty
>>>>>> error: unable to find bc804222b22c7966fa6925af2777af****48834d24ba
>>>>>> error: object file .git/objects/ce/**481168ba469ea1**b05cd119312cc2c6
>>>>>> **2bc670e1 is empty
>>>>>> error: unable to find ce481168ba469ea1b05cd119312cc2****c62bc670e1
>>>>>> error: object file .git/objects/d0/**73eeade657085d**1b47aed4f00bff00
>>>>>> **824d0bef is empty
>>>>>> error: unable to find d073eeade657085d1b47aed4f00bff****00824d0bef
>>>>>> error: object file .git/objects/db/**ee5ba0fcb47159**4a9d1a6fe244cfcd
>>>>>> **bd65f159 is empty
>>>>>> error: unable to find dbee5ba0fcb471594a9d1a6fe244cf****cdbd65f159
>>>>>> error: object file .git/objects/dc/**1059634e18c107**19623c84c833a283
>>>>>> **047a75f3 is empty
>>>>>> error: unable to find dc1059634e18c10719623c84c833a2****83047a75f3
>>>>>> error: object file .git/objects/dc/**d7a69b5e3bb4a1**c8ced5be0043dc8f
>>>>>> **661ec08b is empty
>>>>>> error: unable to find dcd7a69b5e3bb4a1c8ced5be0043dc****8f661ec08b
>>>>>> error: object file .git/objects/ed/**757307b01e7f98**ee28d702e700a088
>>>>>> **68c0a6fe is empty
>>>>>> error: unable to find ed757307b01e7f98ee28d702e700a0****8868c0a6fe
>>>>>> error: object file .git/objects/ee/**4fc9118d213089**e959b1625405c4b8
>>>>>> **35cd4af7 is empty
>>>>>> error: unable to find ee4fc9118d213089e959b1625405c4****b835cd4af7
>>>>>> error: object file .git/objects/f2/**21c154ec8c95fa**c412b167f043782a
>>>>>> **d1917116 is empty
>>>>>> error: unable to find f221c154ec8c95fac412b167f04378****2ad1917116
>>>>>> error: object file .git/objects/f9/**db6847a3faa3f8**e41fb87368b458cb
>>>>>> **921fd457 is empty
>>>>>> error: unable to find f9db6847a3faa3f8e41fb87368b458****cb921fd457
>>>>>> Delta compression using up to 4 threads.
>>>>>> Compressing objects: 100% (203/203), done.
>>>>>> error: object file .git/objects/00/**d2a5741d54116a**156e477093c3fcf3
>>>>>> **0b24c6b3 is empty
>>>>>> fatal: loose object 00d2a5741d54116a156e477093c3fc****f30b24c6b3
>>>>>> (stored in .git/objects/00/**d2a5741d54116a**156e477093c3fcf3**0b24c6b3)
>>>>>> is corrupt
>>>>>> fatal: early EOF
>>>>>> error: failed to push some refs to 'git@***.**.80.9:abcds.git'
>>>>>> zc@zc-t410:~/workspace$
>>>>>>
>>>>>>
>>>>>> help me , thanks.
>>>>>>
>>>>>>
>>>>>> -------
>>>>>> # twitter:  @cnpopeye
>>>>>>
>>>>>>
>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Git for human beings" group.
>>>>> To view this discussion on the web visit https://groups.google.com/d/*
>>>>> *msg/git-users/-/xQNvHhIIiHgJ<https://groups.google.com/d/msg/git-users/-/xQNvHhIIiHgJ>
>>>>> .
>>>>> To post to this group, send email to git-...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to git-users+...@**
>>>>> googlegroups.com.
>>>>>
>>>>> For more options, visit this group at http://groups.google.com/**
>>>>> group/git-users?hl=en <http://groups.google.com/group/git-users?hl=en>
>>>>> .
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 树上@Beijing
>>>>
>>>> # weibo:  @__树上__
>>>> # twitter:  @cnpopeye
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> 树上@Beijing
>>>
>>> # weibo:  @__树上__
>>> # twitter:  @cnpopeye
>>>
>>>
>>>
>>
>>
>> --
>> 树上@Beijing
>>
>> # weibo:  @__树上__
>> # twitter:  @cnpopeye
>>
>>
>>   --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/git-users/-/l2khAyMvLVcJ.
>
> To post to this group, send email to git-users@googlegroups.com.
> To unsubscribe from this group, send email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/git-users?hl=en.
>



-- 
树上@Beijing

# weibo:  @__树上__
# twitter:  @cnpopeye

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to