Re: fatal: bad object HEAD
I tried
$ git fsck --verbose Checking tree fe217057862c74e6c1a0cf12e39b941f967927b2 Checking blob fe56c41c028f320bb474ca9e0fe15baa2b0aa122 Checking blob fe7c85910717d546ee002bb64a9d1476a9451eed error: refs/heads/branch_1 does not point to a valid object! error: refs/heads/branch_2 does not point to a valid object! error: refs/heads/branch_3 does not point to a valid object! error: refs/heads/branch_4 does not point to a valid object! error: refs/heads/master does not point to a valid object! Checking reflog 3d7d1cf8f8edae21d90be9d84c21b5ac65ee94dc->9e53015709777b533717b25687295407f38f840e Checking reflog 9e53015709777b533717b25687295407f38f840e->695e934882e78fb85b78649dea5109aa69855a88 ...
and deeper in the output there are 4 suspicious entries: Checking reflog 0000000000000000000000000000000000000000->696bd2fc4a8554891976af42e65ccaf9d12009ac Checking reflog 0000000000000000000000000000000000000000->aff44ac2a61607dd95caadd896e2cae51e4dfdcf Checking reflog 0000000000000000000000000000000000000000->6f20af9bcc1f446116cc1af238cb849ca1ccd385 Checking reflog 0000000000000000000000000000000000000000->696bd2fc4a8554891976af42e65ccaf9d12009ac
I think here might the problem. Can anyone explain me what it means? thx a lot
Bost
On Thu, Mar 19, 2009 at 17:55, Rostislav Svoboda <rostislav.svoboda@gmail.com> wrote:
Show 24 quoted lines
> Hi people, I have a BIG trouble:
>
> $ git fsck
> error: refs/heads/branch_1 does not point to a valid object!
> error: refs/heads/branch_2 does not point to a valid object!
> error: refs/heads/branch_3 does not point to a valid object!
> error: refs/heads/master does not point to a valid object!
> (and quite many missing and dangling blobs)
>
> I use msysGit 1.6.1-preview20081227 and I did:
> $ git checkout master
> $ git gui
>
> here I got again and again that stupid error message
> 'file fname.ext has been modified but no changes detected' so I did
> $ git add fname.ext
> $ git branch branch_1 (here I did a mistake. I wanted to do 'git
> checkout branch_1' )
>
> And now is _everything_ seems to be lost... uaaaa :( What can I do now?
> Any would be REALLY appreciated
>
> Bost
>