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提升部署情況統(tǒng)計-功能調(diào)整1111 /vs-pcs-zq-dynamic-1.6-SNAPSHOT.jar: No such file or directory
error: unable to create file doc/升級包/升級包-- PCS2.8提升部署情兄統(tǒng)計-功能調(diào)整1111 /vs-pcs-zq-manager-1.6-SNAPSHOT.jar: No such file or directory
error: unable to create file doc/升級包/升級包--PCS2.8提升部署情況統(tǒng)計-功能調(diào)整1111 /注汽系統(tǒng)升級文檔.pdf: No such file or directory
error: unable to create file doc/升級包/升級包- -系統(tǒng)升級包-方案編制流程功能/升級說明.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的時候一直報上面的錯誤乍构,上網(wǎng)找的解決方法也基本是說文件名包含特殊字符之類的绰精,但是這個文件里面確實沒有所說的特殊字符。
在偶然的情況群扶,我發(fā)現(xiàn)git上的項目問題路徑文件夾末尾包含一個空格及刻,但是在Windows中無法創(chuàng)建末尾包含空格的目錄。所以就導(dǎo)致了一個這樣的奇葩問題竞阐,所以找提交代碼的人修改下對應(yīng)的路徑問題缴饭,重新提交代碼就可以了。