Git clone gets fatal: protocol error: bad pack header with large Git repository

Solution Unverified - Updated -

Issue

  • Git clone gets fatal: protocol error: bad pack header error with large Git repository

    Cloning "http://xxx.xxx.xxx.xxx/repos/xxx" ...
    error: build error: error: RPC failed; result=18, HTTP code = 200
    fatal: The remote end hung up unexpectedly
    fatal: protocol error: bad pack header
    

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content