views:

100

answers:

3

What I am trying to do is a git clone on windows, but the parent repository exists in a unix machine.

Am cloning using ssh to get a clone from UNIX to windows, and I get this weird error.

error: git checkout-index: unable to create file <filename>

This happens during the checkout step of a git clone.

Can anyone help me?

+1  A: 

A common problem is two files whose names differ only by case — git assumes a case sensitive system. If the repository contains both FOO and foo, then attempting to create one after the other will fail.

jleedev
A: 

Was your directory plus your filenames too long for Windows? I came across this problem once, and it was fixed when I tried cloning into a lower directory.

Andrew Grimm