QUICK TIP: 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, like this:

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.

</code></code><p><code>"C:\Program Files\Git\bin\sh.exe" --login -I -c 'git.exe daemon --verbose&nbsp; '</code><p><code>

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

</code></code><p><font face="Courier New">git clone --branch myfeature <a href="https://MyGitRepoUrl">https://MyGitRepoUrl</a></font><p><font face="Courier New"><code><code>

…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.


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




Print Friendly, PDF & Email
Posted in Blog

Leave a Reply