我的存储库中有以下名称的文件:
*.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.
你知道任何解决方法吗?
答案 0 :(得分:4)
不幸的是,没有。 Windows disallows certain characters in the filename和Git几乎可以支持任何内容,因此您可以自行管理它。我认为您最好的解决方案是简单地重命名该文件。
就个人而言,我还是避免在文件名中使用*
,因为它是一个全局字符。