刚开始学习,在源码拉取时报
invalid path 'docs/Chapter5/dependent-envars.yaml '
unable to checkout working tree
Clone succeeded, but checkout failed.
怀疑是dependent-envars.yaml文件名后有空格导致,因为查看该文件路径时,URL上该文件后有%20
老师,我用阿里云的Centos主机clone成功了,但是Windows一直报错,我提速到了1.2M/s仍然报
invalid path 'docs/Chapter5/dependent-envars.yaml '
unable to checkout working tree
Clone succeeded, but checkout failed.
报错的全文:
>git clone https://git.imooc.com/coding-464/kubeblog.git
Cloning into 'kubeblog'...
remote: Counting objects: 2216, done.
remote: Compressing objects: 100% (1568/1568), done.
Receiving objects: 100% (2216/2216), 44.41 MiB | 200.00
Resolving deltas: 100% (929/929), done.
error: invalid path 'docs/Chapter5/dependent-envars.yaml '
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 :/'
不知道不是与操作系统有关,感觉确实和docs/Chapter5/dependent-envars.yaml路径后有个空格有关,不知道是不是OS和CentOS对空格做过处理,而windows没有导致的,看之前貌似也有同学有这样的问题