Git pack-has-bad-object Git detected corruption inside one of its compressed data bundles (packfiles).
Reviewed for reference consistency: April 11, 2026
Code is Safe
SECUREGit has paused the operation to protect your code. No data has been lost or corrupted.
What To Know
Where Did It Fail?
Commands That Trigger This
Technical Background
This is a critical integrity error. Git's cryptographic model ensures you cannot accidentally deploy corrupted code, so it strictly halts access to the bad packfile.
Recovering from pack corruption depends on whether another clean copy of the repository still exists, because Git no longer trusts the damaged packed data on disk.
Underlying Causes
Frequently Asked Questions
Unlikely. Pack corruption is almost always caused by hardware read/write failures or sudden power loss during a Git operation.