错误:git checkout-index:无法创建文件 [英] error: git checkout-index: unable to create file
问题描述
使用ssh克隆从UNIX到Windows的克隆,我得到这个奇怪的错误。
错误:git checkout-index:无法创建文件<文件名>
这发生在git克隆的结帐步骤中。
任何人都可以帮我吗?
答案应该是:我们不能创建一个名为aux的文件。 c in windows!
请参阅 http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx
请勿将以下保留的设备名称用于文件名称:
CON,PRN,AUX,NUL,COM1,COM2,COM3,COM4,COM5,COM6,COM7,COM8,COM9,LPT1,LPT2 ,LPT3,LPT4,LPT5,LPT6,LPT7,LPT8和LPT9。同时避免使用这些名称,紧接着是扩展名;例如,不建议使用NUL.txt。有关更多信息,请参阅命名空间。
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?
The answer should be:we can't create a file named aux.c in windows!
See http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx Do not use the following reserved device names for the name of a file: CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names followed immediately by an extension; for example, NUL.txt is not recommended. For more information, see Namespaces.
这篇关于错误:git checkout-index:无法创建文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!