win10用git bush克隆git仓库时无法克隆用”*“命名的文件?

$ git clone https://github.com/soimort/translate-shell
Cloning into 'translate-shell'...
remote: Enumerating objects: 93, done.
remote: Counting objects: 100% (93/93), done.
remote: Compressing objects: 100% (60/60), done.
remote: Total 4668 (delta 47), reused 65 (delta 33), pack-reused 4575
Receiving objects: 100% (4668/4668), 2.53 MiB | 1.03 MiB/s, done.
Resolving deltas: 100% (2976/2976), done.
error: invalid path 'include/Translators/*.awk'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

提示invalid path 'include/Translators/*.awk'

之后设置了git config --global core.protectNTFS false,仍然无效,提示unable to create file include/Translators/*.awk: Invalid argument

$ git clone https://github.com/soimort/translate-shell
Cloning into 'translate-shell'...
remote: Enumerating objects: 93, done.
remote: Counting objects: 100% (93/93), done.
remote: Compressing objects: 100% (60/60), done.
remote: Total 4668 (delta 47), reused 65 (delta 33), pack-reused 4575
Receiving objects: 100% (4668/4668), 2.53 MiB | 1.58 MiB/s, done.
Resolving deltas: 100% (2976/2976), done.
error: unable to create file include/Translators/*.awk: Invalid argument
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
$ git restore --source=HEAD :/
error: unable to create file include/Translators/*.awk: Invalid argument

请问这个问题如何解决,谢谢。

阅读 4.3k
1 个回答
新手上路,请多包涵

windows文件名或文件夹名中不能出现以下字符:\、/、:、*、?、"、<、>、| 。
所以失败了吧

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进