WORKAROUND: Git clone on Windows fails with ‘index-pack failed’ error

I tried checking out a feature branch of a Git repo from the command line on Windows, and received the following error:

fatal: early EOF
fatal: index-pack failed

Absolutely no real info here to help me identify the source problem.

The Fix

To get to the source of the issue, I launched the Git daemon in verbose mode.

 "C:\Program Files\Git\bin\sh.exe" --login -I -c 'git.exe daemon --verbose 

Then, I re-attempt the Git clone of my feature branch

git clone --branch myfeature 'https://MyGitRepoUrl' 

…and I received a a prompt from Windows that the Windows Firewall has blocked some features of this app with a prompt to allow the ports

image_thumb7

What it creates is this new allow rule on Windows Firewall for Git for Windows as shown below

image_thumb4

image_thumb3

Print Friendly, PDF & Email

Leave a Reply