gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 09:58:59 25 4
gpt4 key购买 nike

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

*.example.com.crt

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

错误:无法创建文件 *.example.com.crt(无效参数)
check out 文件:100% (6122/6122),完成。
致命:无法检查工作树
警告:克隆成功,但 checkout 失败。

您知道解决方法吗?

最佳答案

不幸的是,没有。 Windows disallows certain characters in the filename ,并且 Git 几乎支持任何东西,因此由您来管理它。我认为最好的解决方案是简单地重命名文件。

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

关于windows - 当某些文件名包含星号时无法在 Windows 上克隆 git repo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26780189/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com