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

bol*_*oli 4 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.

你知道任何解决方法吗?

Joh*_*ter 7

抱歉不行。Windows不允许文件名中的某些字符,而 Git 将支持几乎所有内容,因此由您来管理它。我认为您最好的解决方案是简单地重命名文件。

就个人而言,*无论如何我都会避免在文件名中使用,因为它是一个 glob 字符。