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

fatal: bad object HEAD

From
Rostislav Svoboda <rostislav.svoboda@gmail.com>
Date
Mar 19, 2009, 16:55 UTC
Message-ID
<286817520903190955n2e27abb6ydd52d9ddcffccbc7@mail.gmail.com>
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
Next: Rostislav Svoboda
Message 1 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.