git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: fatal: bad object HEAD

From
Rostislav Svoboda <rostislav.svoboda@gmail.com>
Date
Mar 19, 2009, 17:24 UTC
Message-ID
<286817520903191024u7adecbebk30f6f064f38e615b@mail.gmail.com>
In-Reply-To
<286817520903190955n2e27abb6ydd52d9ddcffccbc7@mail.gmail.com>
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
>
Previous: Rostislav Svoboda
Message 2 of 2 in “fatal: bad object HEAD”
  1. Rostislav SvobodaMar 19, 2009
  2. Rostislav SvobodaMar 19, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.