Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 383259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:15:56+00:00 2026-05-12T15:15:56+00:00

I am getting this error in my git repository: 22:09:15 $ git status #

  • 0

I am getting this error in my git repository:

22:09:15 $ git status
# On branch master
error: Could not read 8124cc15c63be92d534e4cdfa33c38d54deee122
error: unable to read tree object HEAD
nothing to commit (working directory clean)

A Google search for error: unable to read tree object HEAD doesn’t result in much help, this error seems to be very rare. I am not sure how to deal with it. Could it be a hard drive failure?

Edit:
The output of git fsck is the following:

broken link from  commit 607328dc80e4901a55b95c683d4fbf43e6df28bf
              to    tree 8124cc15c63be92d534e4cdfa33c38d54deee122
missing tree 8124cc15c63be92d534e4cdfa33c38d54deee122
dangling tree 56b5d4a5e429d251582ec927bca7ef1225510c41
dangling tree 0259d2d38b18b6136bb6070fb41faf3624453cc6
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:15:56+00:00Added an answer on May 12, 2026 at 3:15 pm

    On a “broken link” message, you could follow the GitFaq recommendations:

    • back up all your state so that anything you do is re-doable if you corrupt things more!
    • explode any corrupt pack-files
      • See “man git-unpack-objects“, and in particular the “-r” flag.
        Also, please realize that it only unpacks objects that aren’t already available, so you need to move the pack-file away from its normal location first (otherwise git-unpack-objects will find all objects that are in the pack-file in the pack-file itself, and not unpack anything at all)
    • replace any broken and/or missing objects
      • This is the challenging part.
        Sometimes (hopefully often!) you can find the missing objects in other copies of the repositories.
        At other times, you may need to try to find the data some other way (for example, maybe your checked-out copy contains the file content that when hashed will be the missing object?).
    • make sure everything is happy with “git fsck --full“
    • repack everything to get back to an efficient state again

    Notes:

    • missing objects can also be related to alternate (when you share objects between repositories) with git alternates (even though that can be risky).
    • The JGit/Egit eclipse plugin is also known to have a few issues.
      (Update February 2012: those plugins have come a long way and are now quite stable)

    Update July 2016 (7 years laters), with Git 2.10 soon to be released, you now have:

    git fsck --name-objects
    

    It helps naming the origin of those broken links

    See “How to fix git error broken link from tree to tree?” for more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 211k
  • Answers 211k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer In order for asynchronous I/O to work, you must have… May 12, 2026 at 10:05 pm
  • Editorial Team
    Editorial Team added an answer It's not that you're making fiddler work, but you're making… May 12, 2026 at 10:05 pm
  • Editorial Team
    Editorial Team added an answer you could use a regular expression to search for such… May 12, 2026 at 10:05 pm

Related Questions

I've recently set up cygwin, git, and gitosis on my Windows Server 2003 box
I have 'git' install, but I am not sure if I have the 'svn'
I am getting this error in my asp.net page: A potentially dangerous Request.Form value
I am getting this error in my ASP.NET MVC application where I am taking

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.