当某些文件名包含星号时,无法在Windows上克隆git repo

时间:2014-11-06 13:02:39

标签: windows git

我的存储库中有以下名称的文件:

*.example.com.crt

问题是我无法在Windows上克隆存储库。

error: unable to create file *.example.com.crt (Invalid argument) Checking out files: 100% (6122/6122), done. fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed.

你知道任何解决方法吗?

1 个答案:

答案 0 :(得分:4)

不幸的是,没有。 Windows disallows certain characters in the filename和Git几乎可以支持任何内容,因此您可以自行管理它。我认为您最好的解决方案是简单地重命名该文件。

就个人而言,我还是避免在文件名中使用*,因为它是一个全局字符。