Welcome to OGeek Q&A 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 Reply

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...