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 6130313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:50:37+00:00 2026-05-23T16:50:37+00:00

I tried to run git push and got a corruption error: % git push

  • 0

I tried to run git push and got a corruption error:

% git push
Counting objects: 62, done.
Delta compression using up to 2 threads.
error: corrupt loose object 'f2310668fe335b36c513e50fcd99744e8fd5c2e0'
fatal: object f2310668fe335b36c513e50fcd99744e8fd5c2e0 is corrupted
error: pack-objects died with strange error

This hangs on the last line until I hit Ctrl+C.

I read that running git gc might help, so I did that and got a similar error:

% git gc
Counting objects: 493, done.
Delta compression using up to 2 threads.
error: corrupt loose object 'f2310668fe335b36c513e50fcd99744e8fd5c2e0'
fatal: object f2310668fe335b36c513e50fcd99744e8fd5c2e0 is corrupted
error: failed to run repack

What should I do to fix this?

  • 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-23T16:50:38+00:00Added an answer on May 23, 2026 at 4:50 pm

    Clone a backup of your repository. If the corrupted object id is $OBJECTID, do this:

    In new repository:

    git cat-file -t $OBJECTID > object-type
    git cat-file $(cat object-type) $OBJECTID > object-contents
    

    Move those two new files to the old repository

    In corrupt repository, move away your corrupt object:

    mv .git/objects/XX/XXXXXXXXXXXXXXXXXX .
    git hash-object -t $(cat object-type) -w object-contents
    

    This should write the object into git’s database, and output $OBJECTID to STDOUT. If it outputs some other SHA1 id, you have made a mistake and you should delete that wrong object.

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

Sidebar

Related Questions

I would like to run a compression script before git push such that anytime
I received the following error when I tried to run a C# WinForms application
Error I tried this page to run on local, it is running perfectly fine
I am getting an error:-- git://github.com/odorcicd/authlogic.git (at rails3) is not checked out. Please run
I've run into an interesting problem here in using heroku + git + SVN.
I've been using git for a few months and have never run into problems.
Tried to run Run Code Analysis on a project here, and got a number
I am trying to run git grep from terminal (using Titanium). The results do
I have tryed to run this code in my console: script/plugin install git://github.com/apotonick/cells.git ...but
I tried to run 2 JQuery-ajax at the same time, but it's seem always

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.