Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.1k views
in Technique[技术] by (71.8m points)

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...