错误信息
在Windows下git clone 报错
> git clone https://github.com/redouanelg/EddyNet
Cloning into 'EddyNet'...
remote: Enumerating objects: 177, done.
remote: Total 177 (delta 0), reused 0 (delta 0), pack-reused 177
Receiving objects: 100% (177/177), 5.47 MiB | 5.61 MiB/s, done.
Resolving deltas: 100% (89/89), done.
error: invalid path 'old code /EddyNet_weights/Eddynet_ReluBN.h5'
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 :/'
clone成果,checkout失败。 查看文件,里面只有一个.git文件夹。
原因
原因是库里有一个文件夹的名字是’old code ‘。 两个词中间是个空格就算了,文件夹名的末尾还有个空格。 Windows系统无法接受这种名称的文件夹,故报错。
解决
先Fork,在Linux系统下git clone自己Fork的库,修改文件名并提交。 回Windows系统git clone。
Cloning into 'EddyNet'...
remote: Enumerating objects: 179, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
Rremote: Total 179 (delta 0), reused 1 (delta 0), pack-reused 177
s
Receiving objects: 100% (179/179), 5.47 MiB | 523.00 KiB/s, done.
Resolving deltas: 100% (89/89), done.
|