git.exe clone --progress -v "http://ip/tzd2/chou.git" "C:\DY\temp\chouyourecai2"
Cloning into 'C: \DY\temp\chou' ..
POST git-upload-pack (225 bytes)
remote: Enumerating objects: 1436, done.
remote: Counting objects: 100% (1436/1436), done.
remote: Compressing objects: 108% (822/822), done.
remote: Total 13067 (delta 387), reused 1019 (delta 193)
Receiving objects: 100% (13067/13067), 560.15 MiB | 577.00 KiB/s, done.
Resolving deltas: 100% (4768/4768), done.
error: unable to create file doc/升级包/升级包--PCS2.8提升部署情况统计-功能调整1111 /vs-pcs-zq-dynamic-1.6-SNAPSHOT.jar: No such file or directory
error: unable to create file doc/升级包/升级包-- PCS2.8提升部署情兄统计-功能调整1111 /vs-pcs-zq-manager-1.6-SNAPSHOT.jar: No such file or directory
error: unable to create file doc/升级包/升级包--PCS2.8提升部署情况统计-功能调整1111 /注汽系统升级文档.pdf: No such file or directory
error: unable to create file doc/升级包/升级包- -系统升级包-方案编制流程功能/升级说明.docx: No such file or directory
Checking out files: 100% (1915/1915), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
git did not exit cleanly (exit code 128) (1035891 ms @ 2019/8/1 18:51:39)
在clone的时候一直报上面的错误,上网找的解决方法也基本是说文件名包含特殊字符之类的,但是这个文件里面确实没有所说的特殊字符。
在偶然的情况,我发现git上的项目问题路径文件夹末尾包含一个空格,但是在Windows中无法创建末尾包含空格的目录。所以就导致了一个这样的奇葩问题,所以找提交代码的人修改下对应的路径问题,重新提交代码就可以了。